Questions tagged [remote-branch]

142 questions
9
votes
2 answers

Git: How to push from "no branch" to a new remote branch?

I did: git co upstream/master # To no branch. git commit -a -m "Trivial edit" git push origin NewBranch But got this: $ git push origin ignore-netbeans-config error: src refspec ignore-netbeans-config does…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
9
votes
3 answers

git: Why am I ahead of origin/master with X commits after I do 'git push'?

I am using a bare git repository on a server for backup, and push local changes there with 'git push' after doing 'git commit' locally. 'git status' tells me # On branch master # Your branch is ahead of 'origin/master' by X commits. If I modify a…
Eyvind
  • 5,221
  • 5
  • 40
  • 59
8
votes
2 answers

Git sends huge amount of data after branch

I have a repository with lots of binary files (about 250MB) - I don't know if that is important. I'm making a new branch and trying to publish it on the central server: git checkout -b newbranch git push origin newbranch:newbranch Now here, git is…
stach
  • 2,135
  • 2
  • 20
  • 22
8
votes
3 answers

Head commit for all remote branches using Git

I know how to list the remote branches $ git branch -a And I know how to find the head commit hash of my current branch $ git rev-parse HEAD But I'm not sure how to list all the head commit hashes for all the remote branches. This is close to…
milkplus
  • 33,007
  • 7
  • 30
  • 31
8
votes
1 answer

What happens if I git delete a remote branch that has subbranch that has not been merged to it

I'm getting rid of the development (in purple) branch and having all subbranches branch from master (in teal) and merge to master. development branch is branched from master. If there are sub branches off development that have not been merged yet,…
claya
  • 1,920
  • 1
  • 18
  • 32
7
votes
2 answers

How to share a git feature (or topic) branch with multiple developers

I'm following the the workflow described here, as I found many references pointing to this page as a good workflow. As mentioned in the article, "feature" branches are shared between developers, but do not go to the central repository. Let's say a…
duduklein
  • 10,014
  • 11
  • 44
  • 55
7
votes
3 answers

Git clone does not bring master branch

I have a remote repository http://github.com/fernandezpablo85/Test This repo has a master branch, but it's behind two other branches so when I clone it I get this warining: warning: remote HEAD refers to nonexistent ref, unable to checkout. And…
Pablo Fernandez
  • 103,170
  • 56
  • 192
  • 232
7
votes
2 answers

Can't push local changes to an existing remote branch

There is a remote branch called "my-remote" that I had previously pushed to with no problem. As of today, I can't push and I get different errors. First error I got was: hint: Updates were rejected because a pushed branch tip is behind its…
user1404536
  • 1,101
  • 3
  • 10
  • 17
6
votes
2 answers

Git fetch a branch once with a normal name, and once with capital letter

I'm fetching for remote branches and stuck in some sort of a loop. I fetch once and get: $ git fetch * [new branch] minorRelease/something-> origin/minorRelease/something And then I fetch again and get: $ git fetch * [new branch] …
ShlomiTC
  • 446
  • 4
  • 12
6
votes
1 answer

Git pull gives conflicts with octopus strategy

Lately when I run git pull in my master branch it occasionally gives the following merge error: Trying simple merge with 7ff9b5... Trying simple merge with 6872cd... Simple merge did not work, trying automatic merge. Auto-merging…
Janmar
  • 126
  • 1
  • 1
  • 8
6
votes
1 answer

Detailed explanation of 'git remote show'

I honestly cannot find any detailed documentation of the output of git remote show (certainly not on the man page) In particular, a clear, exact explanation of the Local sections would be appreciated. An example of what I find confusing: Here I…
Klas Mellbourn
  • 42,571
  • 24
  • 140
  • 158
6
votes
4 answers

Best pratice for multiple custom projects and Git

In my company we have a base software that gets customized for every client. Today using SVN we have a setup like this: /trunk /tags … /branches /client_project_x /client_project_y /client_project_z How would be the best way do…
Marco Pompei
  • 1,080
  • 1
  • 8
  • 18
6
votes
4 answers

How to remove remote branch with JGit

I'm not able to figure out how to remove a remote branch. I was trying to mimic the following GIT command: git push origin :branchToDelete The following code and it's variations with the empty source: RefSpec refSpec = new RefSpec(); refSpec…
ivan.verhun
  • 61
  • 1
  • 4
6
votes
2 answers

How do I stop pushing to multiple remote branches in git? (aka, How do I untrack remote git branches?)

Tried to use what's here, but that doesn't solve things for me. I've got a local repo in git, cloned from a remote repo, development. I branch locally to play around with a new feature in a branch called newBranchName and call git push origin…
ruffin
  • 16,507
  • 9
  • 88
  • 138
5
votes
1 answer

Bitbucket does not show all branches

I have a repository on bitbucket that contains three branches. I'm able to list the remote branches using a good old git branch --remote command, and everything works perfectly. However, when I visit my repository using a browser, I can only see two…
kmos.w
  • 422
  • 1
  • 3
  • 13
1 2
3
9 10