I’ve cloned a repository called A and created a new branch called Li.
Now someone updated A’s master branch and I’ve pulled the changes to my master branch using:
git checkout master
git pull origin master
Now I want to update my branch (Li) with the changes.
How do I do it?
In adittion, after updating my local branch with the changes, I need to update the remote Li branch with the changes as well, right?
Do I do it by using:
git checkout Li
git push origin Li
To merge changes from
masterin yourLibranch, use the following commands:You’re right for pushing changes to origin, this will create a new
Libranch onorigin.