... | @@ -14,6 +14,12 @@ This is a quick reminder of the basic commands. |
... | @@ -14,6 +14,12 @@ This is a quick reminder of the basic commands. |
|
A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/images/press/git-cheat-sheet.pdf)**. This 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.
|
|
A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/images/press/git-cheat-sheet.pdf)**. This 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.
|
|
|
|
|
|
### Setup
|
|
### Setup
|
|
|
|
Command | Effect
|
|
|
|
--- | ---
|
|
|
|
`git config --global user.name "YOUR_USERNAME"` | Setup your name for your commits
|
|
|
|
`git config --global user.email "your_email_address@example.com"` | Setup the email address for your commits.
|
|
|
|
`git config --global color.ui auto` | Enable some colourful git output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
... | @@ -21,7 +27,7 @@ A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/ima |
... | @@ -21,7 +27,7 @@ A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/ima |
|
Command | Effect
|
|
Command | Effect
|
|
--- | ---
|
|
--- | ---
|
|
`git pull` | Fetch the latest code from the GitLab server and update your local copy.
|
|
`git pull` | Fetch the latest code from the GitLab server and update your local copy.
|
|
`git status` | Show the current status of the local working tree
|
|
`git status` | Show the current status of the local working tree.
|
|
`git add <file or folder>` |
|
|
`git add <file or folder>` |
|
|
`git commit` |
|
|
`git commit` |
|
|
`git push` |
|
|
`git push` |
|
... | | ... | |