Horje Website
remove origin git Code Example | Shell/Bash
how to remove remote origin from git repo
 
  1. git remote remove origin
how to remove a git remote origin
 
  1. git remote remove origin
remove remote git
 
  1. # The example will remove the github remote.
  2. # Note that the command will not delete the repository,
  3. # just the local reference.
  4. git remote rm origin
git remove remote
 
  1. $ git remote -v
  2. # View current remotes
  3. > origin https://github.com/OWNER/REPOSITORY.git (fetch)
  4. > origin https://github.com/OWNER/REPOSITORY.git (push)
  5. > destination https://github.com/FORKER/REPOSITORY.git (fetch)
  6. > destination https://github.com/FORKER/REPOSITORY.git (push)
  7. $ git remote rm destination
  8. # Remove remote
  9. $ git remote -v
  10. # Verify it's gone
  11. > origin https://github.com/OWNER/REPOSITORY.git (fetch)
  12. > origin https://github.com/OWNER/REPOSITORY.git (push)
remove origin git
 
  1. git remote rm origin
git remote add wrong thing how to remove
 
  1. git remote set-url origin https://github.com/your/repository
Published:
February 26, 2021
Author:
admin
Category:
Live Code, Shell/Bash Code
Views:
16

This article was posted in Live Code, Shell/Bash Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022