Search code examples
gitgithubgit-pull

How to pull the latest changes to my current working branch in GitHub?


Suppose I'm in branch 'abc-test'

git pull origin master

Does this merges master branch with my current Branch('abc-test') or do I need to run more commands?


Solution

    1. git pull origin master will pull changes from the origin remote, master branch and merge them to the local checked-out abc-test branch
    2. may be you will get conflicts then you have to resolve the conflict and commit the change git commit -m"Your commit Message"
    3. If no conflict then skip step 2 go to step 4
    4. then you have to push the change git push