Related Pages
Git - How to use Git.
$ git clone https://example.com/user/project.git $ ls project
$ git init $ git remote add origin https://example.com/user/project.git $ ls project $ cd project $ git pull origin master
#Pull the contents of the master branch in the remote repository (origin) to the current branch in the local repository $ git pull origin master $ git pull #origin and master can be omitted.
$ git fetch origin master #Obtain information only on the master branch of the remote repository (origin) Ref:$ git fetch origin #Get information about all branches in the remote repository (origin) $ git log #Confirm changes $ git checkout origin/master #Switching work trees #Check the contents of local information for tracking #Information on the master branch of the remote repository (origin) $ git checkout -a #List all branches $ git checkout master #Switch work tree to master branch; master can be omitted $ git merge origin/master # Merge current branch with origin/master
Related Pages
Git - How to use Git.