... | ... | @@ -29,8 +29,9 @@ Command | Effect |
|
|
--- | ---
|
|
|
`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 add <file or folder>` |
|
|
|
`git commit` |
|
|
|
`git diff <file or folder>` | Show changes from the file or all files if none specified.
|
|
|
`git add <file or folder>` | Add the specific file or folder to the index.
|
|
|
`git commit` | Move
|
|
|
`git push` |
|
|
|
|
|
|
|
... | ... | @@ -75,9 +76,13 @@ Next, we will need to add your SSH key so that you can `clone` a copy of the pro |
|
|
All commands need to be executed within the directory of your git repo.
|
|
|
|
|
|
### Best practices for your own (and others) sanity
|
|
|
1. Add changes to your commit often
|
|
|
1. Add changes to your commit often.
|
|
|
2. Commit when-ever you step away from your work.
|
|
|
3. Try keep all changes in a commit related. The above is more important than this though.
|
|
|
4. Make your commit messages helpful. Short, but descriptive. Remember you can enter a 2nd line of text.
|
|
|
|
|
|
### Links and Videos |
|
|
\ No newline at end of file |
|
|
### Links and Videos
|
|
|
|
|
|
Link | Description
|
|
|
--- | ---
|
|
|
[git - the simple guide](http://rogerdudler.github.io/git-guide/) | A short but decent guide. Helpful if you want to setup on your own PC. |
|
|
\ No newline at end of file |