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