This is an old revision of the document!
Git Commands
Useful syntax
Please feel free to add to this page! :D
- Create things:
- Make git folder repository: git init
- Add file: git add <file name>
- Remote folder: git remote add <file name> https://github.com/try-git/try_git.git
- Store: git commit -m“<thing changed>”
- Update things:
- Update files: git status
- See change in working directory: git diff
- Move things:
- Remote repository: git push
- See changes:
- Summary (see if delete, add, etc.): git log
- Delete/Undo things:
- Remove file: git reset <directory>/<filename>
- Undo: git checkout — <filename>