【问题标题】:Losing my .gitignore file with SourceTree使用 SourceTree 丢失我的 .gitignore 文件
【发布时间】:2017-05-18 18:08:50
【问题描述】:

我是SourceTree 用户。但是今天我在我的 Mac 上安装了GitHub 客户端(为了分叉一个 GitHub 项目)。它在我维护的存储库中造成了混乱。

我使用并在我的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:奇怪的是,并不是所有的 repos 都会发生这种情况(但假设是 75%)

【问题讨论】:

    标签: git macos sourcetree github-for-mac


    【解决方案1】:

    问题一出现就突然消失了……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-31
      • 2017-12-05
      • 1970-01-01
      • 2015-12-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多