git push trying to push files not listed in git ls-files

后端 未结 3 1380
遥遥无期
遥遥无期 2021-01-19 15:54

I accidentally committed an unnecessary large subfolder xxxxx in my repo, and when I realized this while pushing, I stopped the push midway through.

Then I removed a

3条回答
  •  醉梦人生
    2021-01-19 16:47

    Since the commit, that needs editing is on the head of branch, you probably can get away just with amending it. So do the git rm and then git commit --amend

    This will merge changes into most recent commit, instead of creating new one

提交回复
热议问题