Skip to content

Instantly share code, notes, and snippets.

@MirzaMerdovic
Created February 26, 2019 17:59
Show Gist options
  • Save MirzaMerdovic/9f0a95e22b3f95db1333ec1af8db4a30 to your computer and use it in GitHub Desktop.
Save MirzaMerdovic/9f0a95e22b3f95db1333ec1af8db4a30 to your computer and use it in GitHub Desktop.
GIT Commands
# Add all files and commit
git add .
git commit
# Rebase master to working branch
git rebase master -i
# Rebase and fixup N commits on master
In example below N = 2
git rebase HEAD~2 -i
# Edit the last commit message
git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment