Skip to main content
deleted 3 characters in body
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork, create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So pastPast the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork, create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork, create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

Past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

added 1 character in body
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork, create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork, create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

edited body
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork create your upstream remote, you. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork create your upstream remote, you only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

If, like me, you never commit anything directly to master, which you should really, you can do the following.

From the local clone of your fork create your upstream remote. You only need to do that once:

git remote add upstream https://github.com/whoever/whatever.git

Then whenever you want to catch up with the upstream repository master branch you need to:

git checkout master
git pull upstream master

Assuming you never committed anything on master yourself you should be done already. Now you can push your local master to your origin remote GitHub fork. You could also rebase your development branch on your now up-to-date local master.

So past the initial upstream setup and master checkout, all you need to do is run the following command to sync your master with upstream: git pull upstream master.

added 10 characters in body
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32
Loading
added 73 characters in body
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32
Loading
Source Link
Slion
  • 2.9k
  • 2
  • 26
  • 32
Loading