Skip to content

Instantly share code, notes, and snippets.

@seLain
Created February 24, 2018 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save seLain/1d54e80d16b6ad59122d3f1d4ddf15df to your computer and use it in GitHub Desktop.
Save seLain/1d54e80d16b6ad59122d3f1d4ddf15df to your computer and use it in GitHub Desktop.
set up a fetch-only remote
ref: http://sushihangover.github.io/git-set-up-a-fetch-only-remote/
> git remote -v # to see all remotes
> git remote set-url --push <remote_name> DISABLE
for example:
> git remote set-url --push upstream DISABLE
check again by
> git remote -v
it will return (partial)
> upstream DISABLE (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment