I had a project that I git init
ed 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?
Asked
Active
Viewed 25 times
0

parsecer
- 4,758
- 13
- 71
- 140
-
4Does 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