Skip to content

Instantly share code, notes, and snippets.

@theiwaz
Last active July 8, 2020 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theiwaz/f2e1ed06f0bdb3b46814e4cac36a3c68 to your computer and use it in GitHub Desktop.
Save theiwaz/f2e1ed06f0bdb3b46814e4cac36a3c68 to your computer and use it in GitHub Desktop.
$ git remote add origin https://github.com/user/repo.git
# Set a new remote
$ git remote -v
# Verify new remote
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
# Pusing to remote
git push -u origin head
To push and track current branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment