This is an old revision of the document!
Git Commands
Useful syntax
Please feel free to add to this page! :D
Create things:
Save things:
See changes:
Delete/undo things:
- Create things:
- Make git folder repository: git init
- Add file: git add <file name>
- Remote folder: git remote add <filename> https://github.com/try-git/try_git.git
- Store: git commit -m“<thing changed>”
- Save things:
- Remote repository: git push origin <branchname>
- See changes:
- Summary of commits (ie. delete, add, etc.): git log
- File changes: git status
- Working directory changes: git diff
- Delete/Undo things:
- Remove file: git rm <filename>
- Undo: git reset
- Navigate github:
- Change directory: git checkout — <filename>