Git Terms List
- Git repository
- Remote repository
- Local repository
- Contributor
- Fork
- Clone
- Push
- Pull
- Work space
- Staging area
- Staged file
- Modified file
- Unmodified file
- PR (Pull request)
- Auto merge
- Merge conflict
Command List
- git clone <repository>
- git status
- git add <file> / git add . / git add *
- git restore <file> (discard changes)
- git commit -m 'messages' / git commit (open text editor ex.nano)
- git reset HEAD^ / git reset HEAD~1
- git push <origin> <branch>
- git log
- git init
- git remote add <origin> <repository>
- git pull <shortname(=origin, pair)> <branch>
Git Workflow
Fork ➡️ clone ➡️ add remote pair repo ➡️ commit ➡️ push remote origin repo ➡️ pull remote pair repo ➡️ commit ➡️ push remote origin repo