Questions tagged [upstream-branch]

60 questions
543
votes
6 answers

When doing a 'git push', what does '--set-upstream' do?

What does git --set-upstream do? I tried to understand it by reading the git manual, but I didn't quite get it.
13
votes
4 answers

How read the current upstream for a git branch

I'm searching a git command to know the upstream associated with an existing branch (if any). (some kind of "read" command associated with the "write" command git branch --set-upstream-to=...) The reason is I use a branch connected with several…
herve-guerin
  • 2,827
  • 20
  • 25
9
votes
4 answers

Git merge commits from a specific upstream release

Scenario: I've forked a github project and begun working on it (after adding the original project as a remote called 'upstream'). While working on my fork, a number of releases are made to the upstream project: v1.3-stable, v1.4-stable,…
rednoyz
  • 1,318
  • 10
  • 24
5
votes
1 answer

How do I do git status upstream?

In my forked repository I have set up a remote origin and remote upstream (the original repo). git status compare to origin. How do I compare to upstream? Thank you
aerijman
  • 2,522
  • 1
  • 22
  • 32
5
votes
2 answers

What is the standard way of keeping a fork in sync with upstream on collaborative projects?

Newbie open-source contributor here. I forked the TortoiseGit repository on GitLab, then cloned it on my computer, edited one file, and committed to branch master. A few days have passed and I want to update my local working copy with the latest…
Marc.2377
  • 7,807
  • 7
  • 51
  • 95
3
votes
0 answers

Difference between `git branch --set-upstream-to=origin/ mybranch` and `git remote add upstream URL`

I have a repo in my account which is not forked from anywhere. But when I tried to do git pull in one of the branches, I got this message: There is no tracking information for the current branch. Please specify which branch you want to merge…
Knowledge Man
  • 309
  • 2
  • 10
3
votes
1 answer

Fast-forwarding and rebase in git

I am reading this and for the most part, I get it. I think I understand rebasing (it obtains a more linear git log history without having to make a commit that is just a three-way commit) I also think I understand the git diagrams. But there are a…
Jwan622
  • 11,015
  • 21
  • 88
  • 181
2
votes
1 answer

git - is there a reference to upstream branch?

I can ask for differences since I started on a feature branch: git diff upstream-branch... But it requires that I know what the upstream branch is. Is there a reference for the upstream branch, whatever it may be without me knowing before hand or…
eftshift0
  • 26,375
  • 3
  • 36
  • 60
2
votes
1 answer

trying to use git fetch to update my non-master branch to source

I have used the steps outlined here to successfully update my master branch of the fork. So the master branch of the fork is now even with the original source's master. I have several different branches and I wanted to make one of them (called…
stratofortress
  • 453
  • 1
  • 9
  • 21
2
votes
1 answer

Understanding : git push --set-upstream "refspec" with and without prefixing "HEAD"

I have local git branch that has no reference to upstream origin. I have made some changes to local branch and committed the same locally. I am now trying to push to remote origin. When I tried: git push --set-upstream origin…
Sriram
  • 53
  • 7
2
votes
1 answer

Routing traffic to outside Kubernetes using Traefik Ingress Controller

I am using Traefik as ingress controller for my Kubernetes cluster. It is working fine, and as expected for all of the use-cases except one. I have few services/applications, all serving on the same URL/Host, but on a different path. Till now all…
kadamb
  • 1,532
  • 3
  • 29
  • 55
2
votes
1 answer

How to checkout to another remote in GitHub?

I'm using two repositories on github named as origin and upstream. I can checkout to different branch with git checkout [branch-name] only within origin. I cannot checkout to another repo upstream. I have used -t option but it didn't work. The error…
jin yun
  • 23
  • 3
2
votes
1 answer

How to configure 'git push -u' to infer the remote branch name?

I checkout a new branch git checkout -b mynewbranch make some changes and commit them git add * git commit -m "Initial commit on this branch" Then I go to push. Since I haven't set an upstream branch, git informs me I must specify the…
Shaun Hamman
  • 2,287
  • 4
  • 21
  • 33
2
votes
1 answer

Fetch and Merge into all Branches at once from Upstream Repository

I have a github fork, which I have cloned onto my computer. On the original project, I have opened many PRs, and each of them correspond to their own branch (I don't use master). From time to time, I occasionally run the following command: git fetch…
Arnav Borborah
  • 11,357
  • 8
  • 43
  • 88
2
votes
2 answers

git: can't create upstream branch

The problem I'm going bananas due to this git (or github?) idiosyncrasy - I've created a new branch, but I can't push it to the upstream repo on github. This is not the first branch I'm pushing on this repo, and everything went smooth so…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
1
2 3 4