... | ... | @@ -45,8 +45,8 @@ Command | Effect |
|
|
`git commit` | Move the changes from the staging area to `HEAD` on your local machine
|
|
|
`git push` | Send the commits on your local machine to the GitLab server
|
|
|
`git reset <file or directory>` | Un-stage changes to a file that have been git added. Local changes are kept.
|
|
|
`git checkout -- <file or directory>` | Replaces the changes in the file with the last content in `HEAD`. Local changes are removed!
|
|
|
` git reset --hard origin/master ` | Replaces **all** local changes with the server version. Local changes are destroyed!
|
|
|
`git checkout -- <file or directory>` | Replace the changes in the file with the last content in `HEAD`. Local changes are removed!
|
|
|
` git reset --hard origin/master ` | Replace **all** local changes with the server version. Local changes are destroyed!
|
|
|
|
|
|
|
|
|
## First time using GitLab
|
... | ... | |