我有一个包含 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'