cd my_project
git init .
git add . # add everything
git commit -m 'Initial commit'
... make some changes ...
#Linux Cheat Sheet
##File Commands:
# adding and committing | |
git add -A # stages All | |
git add . # stages new and modified, without deleted | |
git add -u # stages modified and deleted, without new | |
git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed. | |
git commit --amend --no-edit # Do so without having to edit the commit message. | |
# remotes - pushing, pulling, and tracking | |
git fetch # gets remote objects and refs. Needed if new branches were added on the remote. | |
git remote -v # Lists all remotes (verbose) |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
Press minus + shift + s
and return
to chop/fold long lines!