Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push upstream

Tags:

git

github

I've tried looking for an answer for this but can't find a straight answer.

I'm running the code below.

git fetch upstream  # get the latest copy from master / upstream
git merge upstream/master  # merge the downloaded copies and merge to your copy
git commit -am"test"  # commit your latest changes
git push origin master  # push to your fork
git push upstream  # push to master copy from where you forked your project - is this safe?

is it safe to push to upstream (git push upstream)? My main goal is to apply my changes from my fork to the main project. Or there's a better way? thanks

like image 612
dmb Avatar asked Oct 16 '12 08:10

dmb


1 Answers

It depends on wether you have the privileges to push. If you haven't, ask the owner of the upstream repository to pull from your fork.

like image 197
Olaf Dietsche Avatar answered Sep 24 '22 21:09

Olaf Dietsche