Git_Commands_Guide
Git_Commands_Guide
1. Setting Up a Repository
git init
git status
git add .
Commit changes:
Switch to a branch:
git status
git commit
6. Rebasing
Rebase a branch:
7. Resetting Changes
Unstage changes:
8. Stashing Changes
Stash your changes:
git stash
9. Tagging
git log
Revert a commit:
git clean -f
Remove untracked directories:
Fork a repository:
git remote -v
Start bisecting:
Cherry-pick a commit:
20. Reflog
git reflog