Skip to content

Instantly share code, notes, and snippets.

@Nazmul56
Created December 18, 2019 06:35
Show Gist options
  • Save Nazmul56/bc250a0b595fc1c70936c310fbf9d4b6 to your computer and use it in GitHub Desktop.
Save Nazmul56/bc250a0b595fc1c70936c310fbf9d4b6 to your computer and use it in GitHub Desktop.
1. Oops… I spelled that last commit message wrong
git commit --amend
2. Oops… I forgot to add a file to that last commit
git add missed-file.txt
git commit --amend
5. Oops… I made a spelling mistake in my branch name
git branch -m future-brunch feature-branch
git push origin --delete future-brunch
git push origin feature-branch
https://about.gitlab.com/blog/2018/08/08/git-happens/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment