我有一个带有2次提交的分支“ firstproject”。我想摆脱这些提交,并使它们显示为单个提交。
该命令git merge --squash
听起来很有前途,但是当我运行git merge --squash
终端时,只会显示该命令的选项。正确的命令是什么?
Commit 1:
Added 'homepage.html'
Added 'contacts.html'
Commit 2:
Added 'homepage.php'
Added 'homepage.php'
Deleted 'homepage.html'
Deleted 'contacts.html'