Created
February 24, 2018 04:05
-
-
Save seLain/1d54e80d16b6ad59122d3f1d4ddf15df to your computer and use it in GitHub Desktop.
set up a fetch-only remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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