1

I'm working with git and I've created a local branch called feature/rawfeature_scoring. I'd like to push my local changes to the same remote branch but when I do "git branch -a" I get the following information and I'm not sure what this line means

 remotes/origin/HEAD -> origin/develop

does that mean if I do git push, it pushed to develop branch?

I believe my local and remote branches are a bit messed up and my current local branch is not following the right remote branch. How can I fix this?

enter image description here

When I do git branch -vv, this is what I get.

enter image description here

HHH
  • 6,085
  • 20
  • 92
  • 164
  • Do a `git branch -vv` to make sure, your branch will be in the list and you'll see the upstream destination on the same line. – Romain Valeri Jun 13 '19 at 15:30
  • I did that and updated my original post with the result, does that look ok? when I do git push it pushed my changes to the right remote branch? – HHH Jun 13 '19 at 15:38
  • Yes, the tracking is fine (`origin/feature/rawfeature_scoring`). However, the remote has a commit you don't have yet, you'll have to pull before you push. – Romain Valeri Jun 13 '19 at 15:40
  • In the future please copy and paste test instead of using an image. – Captain Man Jun 13 '19 at 15:42
  • what does remotes/origin/HEAD -> origin/develop mean? – HHH Jun 13 '19 at 15:44
  • Committing and pushing are two different things, are you aware? I ask because I would change the title to match the question (e.g., "how to push the right branch") but I want to be certain I'm not changing the intent of the question. :) – Captain Man Jun 13 '19 at 15:44
  • For what `remotes/origin/HEAD -> origin/develop` means [check this question](https://stackoverflow.com/q/12613793/1858327). – Captain Man Jun 13 '19 at 15:45

0 Answers0