How do you stop tracking a remote branch in Git? -
How do you stop tracking in a remote branch?
I am telling you to stop tracking because in my concrete case, I want to remove the local branch but not the remote. Remote branch will also be erased, along with removing the remote to remove and remove the local:
Do I just have to go to git branch - D The_branch
, and it will not be promoted when I later git push
?
"itemprop =" text ">
As mentioned in the following:
git branch - unset-upstream
other options:
You do not have to delete your local branch.
Just remove your remote tracking branch:
git branch -d -r original /
(this!)
There is no such concept of local tracking branches, only remote tracking Branches.
Basic / In the master guru
is a remote tracking branch fororiginal
repo, you The configuration related to the local branch has to be reset:
git config --unset branch.
gt; .remote git config & gt; branch & gt; Remove upstream information for merge
& lt; branchname & gt;
.
If a branch is not specified, it will default to the current branch is.(git 1.8+, Oct. 2012, by)
This is any push /
origin / & lt; Remote branch name & gt;
.
Comments
Post a Comment