Questions tagged [remote-branch]
142 questions
2
votes
2 answers
Git: How to check whether local branch is ahead of remote branch when working directory is modified?
Normally, when the working directory is clean, I can use "git status". The output looks like:
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
However, if the working directory…

river6
- 63
- 6
2
votes
1 answer
What is the recomended workflow in case that my remote branch get updated by other in the middle of my next change set?
Lets say that I push a branch B to the server with commits C1 and C2 and continue working on commits C3. Then other programmer push to B two commits, C4 and C5 and I get notified. My question is, what is the recommend actions or commands, to…
user1785721
2
votes
1 answer
I've changed my branching system. How can I sort it out on github?
So I've kind of done something a bit unusual. I had a couple of branches, master and dev. master had the latest stable version, and dev would have the bleeding edge, and would be merged into master at release.
However, this isn't so good, as a lot…

Alex Coplan
- 13,211
- 19
- 77
- 138
2
votes
1 answer
git add remote a developer's local branch
How does one add a local branch from that of another developer? My colleague's branch is not out on origin.
Thanks!

hybrid9
- 2,466
- 4
- 24
- 24
2
votes
3 answers
Dangling branch?
It's probably an already asked question, but I just don't know what are the right names to call the issue - so please guide me or answer (yes, I've seen this question but couldn't get too much from the answer).
I am trying to git pull but receiving…

BreakPhreak
- 10,940
- 26
- 72
- 108
2
votes
2 answers
Specify the 'origin/master' part in a git push
If I do a git push, I see 3 branches involved. 1) The local branch I am working on, say 'foo1' 2) the local remote-tracking branch 'origin/foo2' (which always is on the same commit as the remote foo3 after push/pull) 3) 'foo3' in the remote repo.…

Florian Kaufmann
- 803
- 6
- 13
1
vote
1 answer
Git gui: how to push to a remote branch?
I have cloned a repository from github and checked out a remote branch. I made a change to the remote branch, committed it, but then when I try to push the change back to the remote branch I get the message "Everything is up-to-date". What am I…

GiH
- 14,006
- 13
- 43
- 56
1
vote
1 answer
Git Remote branches
I currently have Git setup with a central bare repository which is accessed by two developers via remote repositories. I've hit on a problem when I've created a branch and then tried to push that branch from a remote repository to the central bare…

GrandMasterFlush
- 6,269
- 19
- 81
- 104
1
vote
1 answer
Git push again the same commit to remote
My project has a remote and local synchronized repository.
I did locally new branch -> than committed and pushed to the remote.
Next, I have unaware deleted remote branch - operation is impossible to undo(in Gitlab).
So, locally I have everything…

pawchi
- 77
- 7
1
vote
1 answer
How to push all the remote branches
I have a GIT repository in which there are 4 local branch and numerous remote branch, I want to push the entire repository to the bare repository (including remote branches). I tried using git push origin, but remote branch did not get pushed.
My…

Srinidhi
- 21
- 3
1
vote
1 answer
Git: create fork of project after having worked on a clone of that project
I am currently working on a project in which I have the reporter rights (not allowed to push etc.). Unfortunately I did not create a fork, but cloned the original one on my machine and now I am struggling with the idea how to publish it to get…

bdskfsdk321dsad3
- 113
- 1
- 2
- 9
1
vote
1 answer
How do I avoid duplicate commits when pulling changed remote branches in Bitbucket?
If I have a branch with a number of commits, push it to the server, and create a PR in Bitbucket for it, chances are that these commits get changed remotely. For example, someone might click the "Rebase" button in the PR.
When I work on this branch…

Felix Dombek
- 13,664
- 17
- 79
- 131
1
vote
1 answer
Correct way to update git superproject
Scenario: We have recently started using a superproject in our team but seem to keep ending up having different versions of our superproject. We are all working on 1 branch of the project (but superproject has 3 remote branches). The issue seems to…

j1849277
- 11
- 2
1
vote
1 answer
Why do I have to push a new branch?
Initially, I mistakenly checkout the wrong branch of a project using git. I thought this was an easy fix, but I think I checked out the correct remote branch to new local branch. Oops. Now when I try to push my changes to the remote branch, git says…

InformationEntropy
- 309
- 3
- 11
1
vote
2 answers
How to add fork as branch?
There are a lot of forks of Caffe, for example MS have their own Caffe fork.
What I want to do is to compare some fork to master branch of original Caffe.
I know that using git I can compare 2 branches, but my question is how to add fork as…

mrgloom
- 20,061
- 36
- 171
- 301