... | ... | @@ -13,6 +13,15 @@ A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/ima |
|
|
|
|
|
The above is a very good summary, and you are encouraged to have it open or printed out for your reference. **[Here](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html)** is another good guide.
|
|
|
|
|
|
|
|
|
### Simple Git Flow
|
|
|
1. `git pull` to bring changes from GitLab to the local repo.
|
|
|
2. Make changes to your local files in the repo.
|
|
|
2. `git add` files to the Index (staging area).
|
|
|
2. `git commit` to move changes from the Index to a local commit.
|
|
|
2. `git push` to send local changes to GitLab.
|
|
|
|
|
|
|
|
|
### Setup
|
|
|
Command | Effect
|
|
|
--- | ---
|
... | ... | @@ -36,13 +45,6 @@ Command | Effect |
|
|
`git checkout -- <file or folder>` | Replaces the changes in file with the last content in HEAD. Local changes removed!
|
|
|
` git reset --hard origin/master ` | Replaces **all** local changes with the server version. Local changes destroyed!
|
|
|
|
|
|
### Simple Git Flow
|
|
|
1. `git pull`
|
|
|
2. Make changes to your local files in the repo.
|
|
|
2. `git add` files to the staging area.
|
|
|
2. `git commit` the changes in the staging area to a commit.
|
|
|
2. `git push`
|
|
|
|
|
|
|
|
|
## First time using GitLab
|
|
|
This section is aimed towards first time users of both Git and this instance of GitLab.
|
... | ... | |