Download - Git Cards - Keynote Format
![Page 1: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/1.jpg)
$git some skills
![Page 2: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/2.jpg)
git initInitialize a new git repo in the current working directory.
![Page 3: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/3.jpg)
git clone <clone_url>
Clone an existing git repo.
![Page 4: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/4.jpg)
git logShow history of changes.
![Page 5: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/5.jpg)
git diffShow changes to tracked files.
![Page 6: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/6.jpg)
git statusShow a list of changed files in the working directory.
![Page 7: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/7.jpg)
git add <path/file>
Add a new file to the current repo.
![Page 8: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/8.jpg)
git add .Stage all new files and changes to tracked files for the current repo.
![Page 9: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/9.jpg)
git add -uStage all removed files and changes to tracked files for the current repo.
![Page 10: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/10.jpg)
git add -AStage all added files, removed files and changes to tracked files for the current repo.
![Page 11: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/11.jpg)
git commit -aCommit all your local changes.
![Page 12: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/12.jpg)
git commit --amendAmend your most recent commit with the current changes.
![Page 13: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/13.jpg)
git tag v1.0Mark a version or milestone.
![Page 14: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/14.jpg)
git pull --rebaseFetch from origin and fast forward your changes on top of it.
![Page 15: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/15.jpg)
git pushPush committed to changes to origin.
![Page 16: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/16.jpg)
git reset --hardDiscard all uncommitted changes in your working tree. Cannot be undone.
![Page 17: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/17.jpg)
git checkout <path/file>
Reset an individual file back to HEAD.
![Page 18: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/18.jpg)
git checkout <branch_name>
Switch branches.
![Page 19: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/19.jpg)
git branchList all local branches for the current repo.
![Page 20: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/20.jpg)
git branch -rList all remote branches for the current repo.
![Page 21: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/21.jpg)
git branch -d <branch>
Delete a local branch.
![Page 22: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/22.jpg)
git push origin :<branch_name>
Delete a remote branch.
![Page 23: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/23.jpg)
git checkout branch2git merge branch1
Merge branch1 into branch2
![Page 24: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/24.jpg)
git checkout -b new_branch old_branch
Create new_branch based on old_branch and switch to it.
![Page 25: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/25.jpg)
git push origin
Push locally created branch to a remote.
![Page 26: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/26.jpg)
git stash
Stash uncommitted changes in current working tree.
![Page 27: Git Cards - Keynote Format](https://reader035.vdocuments.mx/reader035/viewer/2022062418/55519a26b4c9053c488b46af/html5/thumbnails/27.jpg)
git stash pop
Apply stashed changes to current working tree.