diff --git a/.git-cheat-sheet.md.swp b/.git-cheat-sheet.md.swp new file mode 100644 index 0000000..e9d38df Binary files /dev/null and b/.git-cheat-sheet.md.swp differ 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) +