0

I had a project that I git inited earlier and pushed commits to origin remote. I've made some changes to the code and was ready to make a second commit, but accidentally sent git init instead of git status. Is there a way to undo it?

parsecer
  • 4,758
  • 13
  • 71
  • 140
  • 4
    Does this answer your question? [Does running git init twice initialize a repository or reinitialize an existing repo?](https://stackoverflow.com/questions/5149694/does-running-git-init-twice-initialize-a-repository-or-reinitialize-an-existing) – funnydman Jan 25 '20 at 16:00
  • @funnydman Yes, thanks – parsecer Jan 25 '20 at 17:27

0 Answers0