Skip to content

Instantly share code, notes, and snippets.

@jcpst
Last active August 29, 2015 14:12
Show Gist options
  • Save jcpst/47c2339234c9f03efe1b to your computer and use it in GitHub Desktop.
Save jcpst/47c2339234c9f03efe1b to your computer and use it in GitHub Desktop.
working with repos
create a branch
git checkout -b iss53
update a branch to master
$ git checkout jcpst
$ git merge master
change origin of repo
$ git remote rm origin
$ git remote add origin git@github.com:user/project.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment