首次安装最新版sourcetree,发现本地代码改动后,没有sourcetree没有变动记录?
问题:本地明明改了很多代码,但是sourcetree
这里却没有任何变动记录,没有任何需要提交的代码
image.png
解决:
需要打开
sourcetree
的设置- 高级 - 编辑这里image.png
可以找老同事,要下这里的配置,copy过来,粘贴上去,点击确定,重启
sourcetree
即可。如果没有老同事,就自己一个人,试试如下:【建议:用老同事的配置】
或者如下:
# macOS
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
Example/Pods
Example/Tests
# Bundler
.bundle
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# 忽略Pods
Pods/
Podfile.lock
Example/Pods/
Example/Podfile.lock