1. solve conflict
senario:
Adam checked out master branch,
then Bob checked out master branch,
then Adam modify a file, commit and push,
then Bob modify the same file,
then Bob need to commit, then pull, then manually resolve the conflit, then commit again, then push.
2. ignore a tracking file
for single file
git rm --cached [filename]
for folder
git rm --cached -r [folder]
时间: 2024-11-10 14:07:36