Skip to content

Instantly share code, notes, and snippets.

@alejio
Last active May 28, 2017 22:21
Show Gist options
  • Save alejio/eb5eb74a19de0a68f10edcbff90682a0 to your computer and use it in GitHub Desktop.
Save alejio/eb5eb74a19de0a68f10edcbff90682a0 to your computer and use it in GitHub Desktop.
Working with Git: basic commands
# Add and commit all
git add -A && git commit -m "Your Message"
# Push to branch
git push -u origin <branch>
# undo commit
git reset HEAD~
# remove tracked file
git rm --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment