Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 832 Bytes

09-Practice-Test-Fetching-and-Pulling.md

File metadata and controls

56 lines (34 loc) · 832 Bytes

Practice Test - Fetching and Pulling

Solutions to practice test - fetching and pulling

  • Run git checkout master; git fetch origin master to fetch remote changes

    $ git checkout master
    $ git fetch origin master
    
  • To view all the branches- both local and remote - run the git branch -a command.

    $ git branch -a
    
  • Run git merge origin/master

    $ git merge origin/master
    
  • Run git pull origin master

    $ git pull origin master
    
  • Run the ls command while in the master branch

    $ ls