Skip to content

Instantly share code, notes, and snippets.

@LayneSmith
Created October 8, 2015 14:24
Show Gist options
  • Select an option

  • Save LayneSmith/99cb92e4150e3e977dc0 to your computer and use it in GitHub Desktop.

Select an option

Save LayneSmith/99cb92e4150e3e977dc0 to your computer and use it in GitHub Desktop.
///Branching an existing branch
git pull origin <original branch name>
git checkout <original branch name>
git checkout -b <new branch name>
# Edit some files
git add .
git commit -m “Added some stuff”
git push origin <new branch name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment