diff --git a/.git-cheat-sheet.md.swp b/.git-cheat-sheet.md.swp new file mode 100644 index 0000000..c69bd1f Binary files /dev/null and b/.git-cheat-sheet.md.swp differ diff --git a/README.md b/README.md index 76091f3..4336a47 100644 --- a/README.md +++ b/README.md @@ -281,4 +281,8 @@ Hello, this is Mohtasim Tamjeed, from Leipzig, Germany Hey, this is Farhan! -Hello, this is Saiful islam, from Dhaka, Bangladesh \ No newline at end of file +Hello, this is Saiful islam, from Dhaka, Bangladesh + + + +hello, i am Mustafizur Rahman from canada, Toronto \ No newline at end of file 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) +