Skip to content

Instantly share code, notes, and snippets.

@ozika
Last active August 14, 2023 15:48
Show Gist options
  • Select an option

  • Save ozika/6a16d527a19f7144170e965f4c3f7bc6 to your computer and use it in GitHub Desktop.

Select an option

Save ozika/6a16d527a19f7144170e965f4c3f7bc6 to your computer and use it in GitHub Desktop.
## add new remote
git remote add temp_origin <<remote address>>

## push/pull as needed
git push temp_origin branch-name
git pull temp_origin branch-name

## switching back (assuming usual remote is called origin, check via git remote -v
git push origin branch-name

## remove temp origin
git remote remove temp_origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment