1
我是SourceTree
用戶。但是今天我安裝在我的Mac客戶端GitHub
(以fork一個GitHub的項目)。它在我維護的回購中造成了一團糟。使用SourceTree丟失我的.gitignore文件
我使用的和在我的SourceTree
應用程序中註冊的所有本地回購站現在都會將.DS_STORE
文件顯示爲要包含的文件。
什麼發生?我該如何解決這個問題?
這裏是.gitignore_global
文件在我的用戶目錄:
#####
# OS X temporary files that should never be committed
.DS_Store
*.swp
*.lock
profile
####
# Xcode temporary files that should never be committed
*~.nib
####
# Objective-C/Swift specific
*.hmap
*.ipa
####
# Xcode build files
DerivedData/
build/
Builds/
#####
# Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3
####
# Xcode 4
xcuserdata
!xcschemes
# Xcode 4
*.moved-aside
####
# XCode 4 workspaces - more detailed
!xcshareddata
!default.xcworkspace
*.xcworkspacedata
####
# Xcode 5
*.xccheckout
*.xcuserstate
####
# Xcode 7
*.xcscmblueprint
####
# AppCode
.idea/
####
# Other Xcode files
profile
*.hmap
*.ipa
####
# CocoaPods
# Pods/
####
# Carthage
Carthage/Build
這裏是.hgignore_global
文件在我的用戶目錄太:
syntax: glob
*~
.DS_Store
PS:奇怪的是,這並不發生所有回購(但我們假設其中75%)