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/02/27 02:55] marcus.williams |
tutorials:git_quick_reference [2019/03/03 01:21] marcus.williams [Variations] |
||
---|---|---|---|
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 23: | Line 23: | ||
[[https://stackoverflow.com/questions/16122234/how-to-commit-a-change-with-both-message-and-description-from-the-command-li|source]] | [[https://stackoverflow.com/questions/16122234/how-to-commit-a-change-with-both-message-and-description-from-the-command-li|source]] | ||
- | ===== Add variations ===== | + | ===== Variations ===== |
- | Recursively add files in folder and subfolders. | + | See modifications within the current directory. |
<code> | <code> | ||
- | git add * | + | git status . |
</code> | </code> | ||
+ | Recursively add files in folder and subfolders (new, modified, deleted). | ||
+ | <code> | ||
+ | git add -A . | ||
+ | </code> | ||
+ | |||
+ | Push with force. Use with caution. | ||
+ | <code> | ||
+ | git push --force origin master | ||
+ | </code> | ||