Frequently Used Commands

A list of git commands that I use all the time, and would like a quick reference to. I should also consider putting these in my XMenu app for quick use (done)...

  • Switch to an existing branch: git checkout branchname
  • Create a new branch: git checkout -b branchname
  • Push a new branch and "create" it on the remote: git push -u origin branchname
  • Set the remote URL: git remote set-url origin git URL

This page was last updated: 3-22-2019