... | @@ -9,12 +9,13 @@ If this is your first time using `git` or simply using this GitLab server, pleas |
... | @@ -9,12 +9,13 @@ If this is your first time using `git` or simply using this GitLab server, pleas |
|
### Setup
|
|
### Setup
|
|
|
|
|
|
### Simple Git flow
|
|
### Simple Git flow
|
|
|
|
All commands need to be executed within the directory of your git repo.
|
|
|
|
|
|
Command | Effect | sample output
|
|
Command | Effect
|
|
--- | --- | ---
|
|
--- | ---
|
|
`git pull` |
|
|
`git pull` | Fetch the latest code from the GitLab server and update your local copy.
|
|
`git status` |
|
|
`git status` | Show the current status of the local working tree
|
|
`git add` |
|
|
`git add <file or folder>` |
|
|
`git commit` |
|
|
`git commit` |
|
|
`git push` |
|
|
`git push` |
|
|
|
|
|
... | | ... | |