Skip to content

Instantly share code, notes, and snippets.

@frontend-3
Last active March 27, 2017 16:27
Show Gist options
  • Save frontend-3/ad8cefa88370bbf6a2f8a5d15d3650d2 to your computer and use it in GitHub Desktop.
Save frontend-3/ad8cefa88370bbf6a2f8a5d15d3650d2 to your computer and use it in GitHub Desktop.
Some useful and advanced command for git.
# Rebase
git rebase —interactive HEAD~numcommit
# List all the branchs merged
git branch --merged | grep -v "\*"
# Interactive staging of specific portions of modified files.
git add -p
# Making atom your default editor
git config --global core.editor "atom --wait"
#Rewrite passphrase ssh
ssh-keygen -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment