A
A
Alexander Bagirov2016-02-26 14:56:16
git
Alexander Bagirov, 2016-02-26 14:56:16

How to sync forked code?

Good afternoon.
Some time ago, I cloned one project and made my edits to it, created a pull request.
At this time, the code in master has been significantly rewritten (no PR yet), so it is now necessary to update my code to match the original and make some additions without affecting my previous changes. How can i do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2016-02-26
@POS_troi

git checkout master
git pull upstream master
git checkout feature
git merge master

In general, there are a lot of articles on this topic on your Internet, for example, on your favorite habrik https://habrahabr.ru/post/125999/ :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question