1
我想知道如果在分支之間擠壓並從中間的遠程推/拉,會發生什麼情況。合併分支時的git squash
DEVELOPER 1
1. $ git checkout foo
2. $ git commit -m 'changed file' file.txt
$ git commit -m 'changed another file' file2.txt
3. $ git push
DEVELOPER 2
4. $ git checkout foo
5. $ git pull // gets commits from 2. above
6. $ git checkout bar
7. $ git merge foo
8. $ git rebase -i HEAD~3
in 1 - 3 - 我對某些文件進行一些本地更改,單獨提交它們,然後按下。其他人拉我的提交,檢出另一個分支,合併第一個分支,然後嘗試壓縮合並中的提交。
這會搞砸歷史嗎?
「搞砸了」 - 不知道。 「改變」 - 是的。 –