From 40a8399cfa399015fcf1ea76fa0cce16cb93d768 Mon Sep 17 00:00:00 2001 From: MustafizurRahman937 Date: Wed, 2 Sep 2026 13:52:05 -0400 Subject: [PATCH] adeed day to day git command cheat_sheet --- .git-cheat-sheet.md.swp | Bin 0 -> 4096 bytes git-cheat-sheet-mustafizur.md | 43 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .git-cheat-sheet.md.swp create mode 100644 git-cheat-sheet-mustafizur.md diff --git a/.git-cheat-sheet.md.swp b/.git-cheat-sheet.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..e9d38df1a96e6b45390f0bb16380343444733ca1 GIT binary patch literal 4096 zcmYc?2=nw+u+%eT00IF92J5I9S-U3iGWfDEF!+`hmn5cTR+Sbh1SMwVCgy?EU;!?! z!QLVM0lIF6rj~(@CRkKJgz7L1)K5t*&MwI>&`-+GOV3Y9Ez?iWEYVHOOVI_=8Kp^J zZgNIyVu@~XMrvw_UTz9b(?=ynLtr!n@P_~|gRzmJ0Z5IqlA?mJP$+)oqq3tRFd71* aAut*OqaiRF0;3@?8UmvsFd72GDg*#Z7c4{o literal 0 HcmV?d00001 diff --git a/git-cheat-sheet-mustafizur.md b/git-cheat-sheet-mustafizur.md new file mode 100644 index 0000000..2f03613 --- /dev/null +++ b/git-cheat-sheet-mustafizur.md @@ -0,0 +1,43 @@ + +Stashing + +git stash — Stash changes. + +git stash list — List stashes. + +git stash pop — Apply and remove latest stash. + +Inspecting History & Diffs + +git log — View commit history. + +git log --oneline --graph — Compact graph view. + +git diff — Show unstaged diff. + +git diff --staged — Show staged diff. + +git show — Show commit details. + +Undo & Cleanup + +git restore — Discard local changes. + +git reset --soft HEAD~1 — Undo commit, keep changes. + +git reset --hard HEAD — Reset to last commit. + +git clean -fd — Remove untracked files/dirs. + +Tags + +git tag — List tags. + +git tag v1.0.0 — Create tag. + +git push --tags — Push all tags. + +This cheat sheet summarizes the most commonly used Git commands for everyday development workflows. + +(you can also git fetch) +