在过去的几年里,我使用SourceTree作为 git 客户端。昨天我尝试了Github Desktop的最后一个版本(版本 Infinite Lop (214))。它比我之前尝试过的所有其他版本都好。仍然不比 SourceTree 好,但无论如何我喜欢它 :) 我决定暂时使用 SourceTree 而不是。
但是今天我打开另一个项目,我对一些文件状态感到惊讶。它表明有 90 多个未提交的更改:
但实际上我只更改了几个文件。它是如何发生的。可以肯定的是,我在终端中签入了相同的项目:
=> git status
但令人惊讶的是,它在 OSX 的 git 版本上也显示了相同的结果:
On branch SomeBranchNameOfProject
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Podfile
typechange: Pods/Headers/Public/AFNetworking/AFHTTPRequestOperation.h
typechange: Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h
typechange: Pods/Headers/Public/AFNetworking/AFHTTPSessionManager.h
typechange: Pods/Headers/Public/AFNetworking/AFNetworkActivityIndicatorManager.h
typechange: Pods/Headers/Public/AFNetworking/AFNetworkReachabilityManager.h
typechange: Pods/Headers/Public/AFNetworking/AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/AFSecurityPolicy.h
typechange: Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h
typechange: Pods/Headers/Public/AFNetworking/AFURLRequestSerialization.h
typechange: Pods/Headers/Public/AFNetworking/AFURLResponseSerialization.h
typechange: Pods/Headers/Public/AFNetworking/AFURLSessionManager.h
typechange: Pods/Headers/Public/AFNetworking/UIActivityIndicatorView+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIAlertView+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIButton+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIImageView+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIProgressView+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIRefreshControl+AFNetworking.h
typechange: Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h
typechange: Pods/Headers/Public/BPXLUUIDHandler/BPXLUUIDHandler.h
typechange: Pods/Headers/Public/CocoaLumberjack/CocoaLumberjack.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDASLLogCapture.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDASLLogger.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDAbstractDatabaseLogger.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDAssertMacros.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDContextFilterLogFormatter.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDDispatchQueueLogFormatter.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDFileLogger.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDLegacyMacros.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDLog+LOGV.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDLog.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDLogMacros.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDMultiFormatter.h
typechange: Pods/Headers/Public/CocoaLumberjack/DDTTYLogger.h
typechange: Pods/Headers/Public/MBProgressHUD/MBProgressHUD.h
typechange: Pods/Headers/Public/MMDrawerController/MMDrawerBarButtonItem.h
typechange: Pods/Headers/Public/MMDrawerController/MMDrawerController+Subclass.h
typechange: Pods/Headers/Public/MMDrawerController/MMDrawerController.h
typechange: Pods/Headers/Public/MMDrawerController/MMDrawerVisualState.h
typechange: Pods/Headers/Public/MMDrawerController/UIViewController+MMDrawerController.h
typechange: Pods/Headers/Public/Mantle/MTLJSONAdapter.h
typechange: Pods/Headers/Public/Mantle/MTLModel+NSCoding.h
typechange: Pods/Headers/Public/Mantle/MTLModel.h
typechange: Pods/Headers/Public/Mantle/MTLReflection.h
typechange: Pods/Headers/Public/Mantle/MTLTransformerErrorHandling.h
typechange: Pods/Headers/Public/Mantle/MTLValueTransformer.h
typechange: Pods/Headers/Public/Mantle/Mantle.h
typechange: Pods/Headers/Public/Mantle/NSArray+MTLManipulationAdditions.h
typechange: Pods/Headers/Public/Mantle/NSDictionary+MTLJSONKeyPath.h
typechange: Pods/Headers/Public/Mantle/NSDictionary+MTLManipulationAdditions.h
typechange: Pods/Headers/Public/Mantle/NSDictionary+MTLMappingAdditions.h
typechange: Pods/Headers/Public/Mantle/NSError+MTLModelException.h
typechange: Pods/Headers/Public/Mantle/NSObject+MTLComparisonAdditions.h
typechange: Pods/Headers/Public/Mantle/NSValueTransformer+MTLInversionAdditions.h
typechange: Pods/Headers/Public/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.h
typechange: Pods/Headers/Public/Reachability/Reachability.h
typechange: Pods/Headers/Public/SDWebImage/NSData+ImageContentType.h
typechange: Pods/Headers/Public/SDWebImage/SDImageCache.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageCompat.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageDecoder.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageDownloader.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageDownloaderOperation.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageManager.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImageOperation.h
typechange: Pods/Headers/Public/SDWebImage/SDWebImagePrefetcher.h
typechange: Pods/Headers/Public/SDWebImage/UIButton+WebCache.h
typechange: Pods/Headers/Public/SDWebImage/UIImage+GIF.h
typechange: Pods/Headers/Public/SDWebImage/UIImage+MultiFormat.h
typechange: Pods/Headers/Public/SDWebImage/UIImageView+HighlightedWebCache.h
typechange: Pods/Headers/Public/SDWebImage/UIImageView+WebCache.h
typechange: Pods/Headers/Public/SDWebImage/UIView+WebCacheOperation.h
事实上,SourceTree 并没有显示带有“Changes not staged for commit”警告的文件!
我知道源代码树使用自己的嵌入式 Git,我可以在首选项中更改它:
这意味着,SourceTree 也可能显示相同的“未暂存文件”......
我的问题是,我如何使用与使用 SourceTree 相同的体验的 Github Desktop?我的 CocoaPods 文件出了什么问题。或者,如果我理解有误,请指导我解决此问题。