Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Remote Fork

Tags:

git

github

I want to remove the bitbucket tracking branch. I'm not sure the terminology I'm using is correct, so that might contribute to why I haven't been able to Google for a solution.

This is what I have:

tom@thinkpad:~/example$ git remote -v
bitbucket   [email protected]:TomLeo/example.git (fetch)
bitbucket   [email protected]:TomLeo/example.git (push)
origin  [email protected]:TomLeo/example.git (fetch)
origin  [email protected]:TomLeo/example.git (push)

This is what I want:

tom@thinkpad:~/example$ git remote -v
origin  [email protected]:TomLeo/example.git (fetch)
origin  [email protected]:TomLeo/example.git (push)
like image 741
Tom Avatar asked Mar 18 '23 12:03

Tom


1 Answers

You can run:

git remote remove bitbucket

From the git-remote man page:

git remote remove < name >

remove, rm

   Remove the remote named <name>. All remote-tracking branches and configuration settings for the remote are removed.
like image 66
Michael Avatar answered Mar 26 '23 02:03

Michael