Search code examples
mergegitlabfetchpull

How to update code in gitlab


My team committed code to gitlab repository and I need to take those updates. I already clone the project into my local directory but didn't take update before.

For taking update what commands need to run. I already tried pull command and it shows the changed file details but that changes are not applying to the project. For apply the changes any new command needs to run again?


Solution

  • Run following commands for taking the update:

    git fetch && git checkout master
    
    git pull