This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:git_quick_reference [2019/03/01 16:43] marcus.williams [Variations] |
tutorials:git_quick_reference [2019/04/18 14:19] marcus.williams [Add, commit & push] |
||
---|---|---|---|
Line 9: | Line 9: | ||
<code> | <code> | ||
git status | git status | ||
- | git add --all | + | git add -A |
git commit -m "JD - commit server work" | git commit -m "JD - commit server work" | ||
git pull origin master | git pull origin master | ||
Line 17: | Line 17: | ||
To provide a detailed message and description from the command line: ''git commit''. | To provide a detailed message and description from the command line: ''git commit''. | ||
- | Then ''Insert'' key. Commented ''#'' lines are ignored. First list is the summary; subsequent lines are the detailed description. | + | Then ''Insert'' key. Commented ''#'' lines are ignored. First line is the summary; subsequent lines are the detailed description. |
Then ''ESC'' key. Close the editor with '':wq'' (w - write, q - quit) and ''Enter'' key. | Then ''ESC'' key. Close the editor with '':wq'' (w - write, q - quit) and ''Enter'' key. | ||
Line 29: | Line 29: | ||
</code> | </code> | ||
- | Recursively add files in folder and subfolders. | + | Recursively add files in working directory and subdirectories (new, modified, deleted). |
<code> | <code> | ||
- | git add * | + | git add -A . |
</code> | </code> | ||