Common git commands and workflows
Initialize Repository
Create a new git repository
Clone Repository
Clone an existing repository
Check Status
Show working tree status
Add Files
Stage files for commit
Commit Changes
Commit staged changes
View History
Show commit history
Create Branch
Create and switch to new branch
Switch Branch
Switch to different branch
List Branches
Show all branches
Delete Branch
Delete a branch
Merge Branch
Merge branch into current branch
Rebase Branch
Rebase current branch
Push Changes
Push commits to remote
Pull Changes
Fetch and merge from remote
Fetch Changes
Fetch from remote without merging
Stash Changes
Temporarily save uncommitted changes
Undo Last Commit
Undo last commit (keep changes)
Amend Commit
Modify last commit
View Diff
Show changes
Tag Release
Create version tag