git init | Create a new Git repository |
git remote | Manage connections to remote repositories |
git clone | Copy a remote repository to the local machine |
git fetch | Download remote changes without merging them |
git pull | Download and merge remote changes |
git status | Show the current repository state |
git branch | List, create, or delete branches |
git switch | Move to another branch |
git checkout | Switch branches or restore files |
git add | Stage changes for the next commit |
git commit | Save staged changes to the repository history |
git commit --amend | Update the latest commit |
git push | Upload local commits to a remote repository |
git reset | Unstage changes or move commit history |
git rebase | Reapply commits on top of another branch |
git rebase -i | Edit, squash, or reorder commits interactively |
git stash | Temporarily save uncommitted work |
git stash pop | Restore the latest stashed work |
git merge | Combine changes from another branch |
git cherry-pick | Apply a specific commit to the current branch |