B S*_*ven 4 git git-svn gitignore
不想更改.gitignore,因为其他人想要回购中的文件.但是我有自己想要使用的副本.
我编辑.git/info/exclude并添加了以下内容:
/Gemfile
/Gemfile.lock
/config/database.yml
/spec/spec_helper.rb
Run Code Online (Sandbox Code Playgroud)
这似乎没有做任何事情.git status仍显示:
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Gemfile
# modified: Gemfile.lock
# modified: config/database.yml
# modified: spec/spec_helper.rb
Run Code Online (Sandbox Code Playgroud)
在不使用.gitignore的情况下保留本地文件版本的最佳方法是什么?
| 归档时间: |
|
| 查看次数: |
1303 次 |
| 最近记录: |