Git Common Issues

Mistakes and issues we all might run into. https://about.gitlab.com/blog/2018/08/08/git-happens/

Oops… I spelled that last commit message wrong

Another common Git pitfall is committing too early. You missed a file, forgot to save it, or need to make a minor change for the last commit to make sense. --amend is your friend once again.

Add that missed file then run that trusty command.

git add missed-file.txt
git commit --amend

At this point, you can either amend the commit message or just save it to keep it the same.

Oops… I committed all those changes to the master branch

todo