git add 时忽略指定的修改
巴扎黑
巴扎黑 2017-05-02 09:40:29
0
2
852

现有两个分支,master和b分支
每次修改文件后,编译后将产生很多文件,而文件中有些需要提交到master分支下,有些需要提交到b分支下
在某个分支下执行git add时如何忽略另一分支的文件

巴扎黑
巴扎黑

reply all(2)
大家讲道理

Just configure different .gitignore for the two branches.

phpcn_u1582

git add + the file name you need to submit

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!