This is an old revision of the document!
Git cheat sheet.
Full documentation.
git status git add --all git commit -m "JD - commit server work" git pull origin master git push origin master
To provide a detailed message and description from the command line: git commit
.
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.
See modifications within the current directory.
git status .
Recursively add files in folder and subfolders (new, modified, deleted).
git add -A .
Push with force. Use with caution.
git push --force origin master