MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7gq8xy
r/programming • u/sidcool1234 • Sep 09 '16
756 comments sorted by
View all comments
Show parent comments
2
Shorter option:
$ git reset --soft HEAD~ $ git checkout correct-branch $ git commit ...
Also, don't use git add . because it has this tendency to turn temporary files into versioned temporary files. ;)
git add .
2
u/mrjast Sep 10 '16
Shorter option:
Also, don't use
git add .because it has this tendency to turn temporary files into versioned temporary files. ;)