Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to undo git remote origin

git remote remove origin

# If however, you wish to change to a new URL 
# you can use the following command instead of 
# removing and then adding again
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
# OR for SSH
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
 
PREVIOUS NEXT
Tagged: #undo #git #remote #origin
ADD COMMENT
Topic
Name
3+5 =