Questions tagged [remote-branch]
142 questions
1
vote
1 answer
How to automatically remove remote-tracking branch when the corresponding local branch is removed using git
The current setup:
$ git branch -a
* master
feature
remotes/origin/master
remotes/origin/feature
After feature branch is merged, I would like to remove local branch feature and remote-tracking branch origin/feature. The remote branch on…

Albert Netymk
- 1,102
- 8
- 24
1
vote
4 answers
Reset a git branch globally (for all users)
In our current workflow, we have 2 main git branches:
master - stable release branch
testing - were everyone tests their code
Now every developer creates new branches for each feature they develop. When they are done, they merge it to testing, and…

Phil
- 818
- 5
- 14
1
vote
1 answer
Why do I need to resolve my change again when I do another rebase
I have two branches, master and my-work-branch
Other people will push changes to master, so I need to keep my-work-branch synced with master so that I also get other people`s changes
I tried to rebase from my-work-branch against master branch often…

jojo
- 13,583
- 35
- 90
- 123
1
vote
1 answer
How can I resurrect a branch?
I have a refactoring/cleanup branch cleanup where I clean up technical debt. After going through one cycle, I merge this branch back into master.
A few weeks later, I have the time to clean up some more and I wanted to resurrect the branch instead…

Aaron Digulla
- 321,842
- 108
- 597
- 820
1
vote
1 answer
git - find unmerged branches without local repository
I love the git branch --no-merged command for finding branches that have changes that are not merged into the current branch.
Is it possible to do that without having a local copy of the repository?
With subversion, you could do this:
svn mergeinfo…

Larry
- 348
- 1
- 9
1
vote
1 answer
Using Git, I have cloned a branch and would like to update to another remote branch
I have cloned a project from Github from branch, say, br1
git clone --branch br1 https://www.github.com/project/project /opt/project/
I would like to switch to branch br2 as if I had did this from the beginning:
git clone --branch br2…

lalebarde
- 1,684
- 1
- 21
- 36
1
vote
1 answer
Remove all local closed branch depends on its remote status
I would like to check which of my local branch are closed on remote server and remove them from my local list - is there such git (or any other e.g.bash) command?
My current flow:
git branch to list my local branches
log in to…

lukaszkups
- 5,790
- 9
- 47
- 85
1
vote
3 answers
Git rebase: reapply all commits, why?
We have a situation since we are using remote branches with Git.
Let me explain briefly:
Developer John created a remote branch "post_video"
I checked out this remote branch to work on it too
git checkout feature/post_video
I committed my changes…

Aurelien
- 277
- 2
- 9
1
vote
1 answer
Can Git Remotes be Cascaded?
My Windows Computer: Has a local git repository (R1) for a Visual Studio project. The remote (origin) for this repository is GitHub. They are identical with just a Master branch. (All of the commits have been pushed to GitHub.)
NAS (local y: drive):…

Jon
- 29
- 6
1
vote
2 answers
git remote tracking branch pushes new branch
I'm having trouble understanding what I did wrong when pushing to a remote branch. Here is what I did:
I created a remote tracking branch locally named CP_Server_Release using the SourceTree GUI tool. This branch is set up to track the remote…

moliveira
- 798
- 8
- 17
1
vote
1 answer
Bitbucket/Mercurial: Trouble pushing named branch (after closing earlier branch with same name)
I'm trying to push a changeset that contains a named branch to a Mercurial repository hosted on Bitbucket, and I'm getting the push creates a new remote head (did you forget to merge?) error. This is happening regardless of whether or not I specify…

Hephaestus
- 1,982
- 3
- 27
- 35
1
vote
2 answers
Git: what exactly causes remote branches to update?
According to Pro Git (3.5):
[remote branches are] local branches that you can’t move; they’re moved
automatically whenever you do any network communication.
However, this doesn't seem to be correct in practise. I've arrived at a situation…

Spalteer
- 454
- 4
- 11
1
vote
3 answers
Error in git book or I misunderstood?
Here you can read:
Tracking Branches Checking out a local branch from a remote branch
automatically creates what is called a tracking branch. Tracking
branches are local branches that have a direct relationship to a
remote branch. If you’re…
user1785721
1
vote
1 answer
git - swap/exchange a remote branch
I have two remote branches:
feature233
v1.9.12.
I need to rename the 1. branch to v1.9.12 and the 2. branch to v1.9.15 :
feature233 --> v1.9.12
v1.9.12 --> v1.9.15
Since the new name of the 1. branch is the same as the old name of the 2.…

Alicia R.
- 53
- 1
- 5
1
vote
1 answer
Git : Do not allow users to push a new branch to remote repo
Sometimes by mistake some of users tend to push their local branches to a remote repo creating a new branch on the remote repo. How can we disallow the users to create new branches on a remote repo but still allow them to push changes to the…

Smit Shah
- 13
- 2