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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With