Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to undo git remote add 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 #add #origin
ADD COMMENT
Topic
Name
8+5 =