Skip to content

Instantly share code, notes, and snippets.

@ml242
Created November 8, 2013 23:08
Show Gist options
  • Save ml242/7379125 to your computer and use it in GitHub Desktop.
Save ml242/7379125 to your computer and use it in GitHub Desktop.
Basic Git commands for groups from Jonathan's quick lecture
Git checkout -b "twilio_integration" (or feature in quotes that you're working on)
git checkout branch master (obviously moves back to master)
git push origin "twilio_integration" (or feature in quotes - just pushes the branch your working on)
when you're finished
git merge "twilio_integration" <- moves the twilio integration branch into the master branch
git branch -d "twilio_integration" <- deletes the branch in quotes
If you want to remove the branch from GitHub
git fetch (gets you all of the branches on GitHub)
git push origin :twilio_integration <-this would allow the person who fetched to delete the entire branch off GitHub
undo one commit: http://stackoverflow.com/questions/927358/how-to-undo-the-last-git-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment