Skip to content

Instantly share code, notes, and snippets.

@rowlando
Last active August 14, 2016 09:32
Show Gist options
  • Save rowlando/daaac807e4bbc6527bff968c15c6a028 to your computer and use it in GitHub Desktop.
Save rowlando/daaac807e4bbc6527bff968c15c6a028 to your computer and use it in GitHub Desktop.
Git Cheat Sheet

How to rebase local branch with remote master

git fetch origin
git rebase origin/master

to get rid of untracked files and directories

git clean -df # Add -n to test what would be removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment