- GIT -
Essential Git Commands
Create a New Repository |
|
|
|
|
|
Clone a Repository |
|
Pull changes from Remote Branch |
|
Push changes from Remote |
|
Working with Local Changes |
|
|
|
|
Viewing History |
|
|
|
Branch & Merge |
|
|
|
|
|
|
Undoing Changes |
|
|
|
|
Temporary Commits | |
git stash | Save modified and staged changes |
git stash list | List all stashes |
git stash pop | Write latest stash to working tree |
git stash apply | Apply latest stash to working tree |
git stash drop | Discard latest stash |
View Differences | |
git diff | View changes between the working tree and the index |
git diff <file> | View changes between the working tree and the index or a specific file |
git diff HEAD | View changes between the working tree and last commit |
Deleting Branches | |
git branch -d <branch> | Delete a local branch (if merged) |
git branch -D <branch> | Force Delete a local branch |
git push origin --delete <branch> | Delete a remote branch |
Configuration |
|
|
|