📦
Git Commands
Version control system commands
25 commands found
/ to searchEscto clear
git init
Initialize a new Git repository
git initgit clone
Clone a repository into a new directory
git clone https://github.com/user/repo.gitgit status
Show the working tree status
git statusgit add
Add file contents to the staging area
git add file.txtgit commit
Record changes to the repository
git commit -m 'Add new feature'git push
Update remote repository with local commits
git pushgit pull
Fetch and integrate changes from remote repository
git pullgit fetch
Download objects and refs from remote repository
git fetchgit branch
List, create, or delete branches
git branchgit checkout
Switch branches or restore files
git checkout maingit merge
Join two or more development histories together
git merge feature-xgit rebase
Reapply commits on top of another base tip
git rebase maingit log
Show commit logs
git loggit diff
Show changes between commits, commit and working tree, etc
git diffgit stash
Stash changes in a dirty working directory
git stashgit reset
Reset current HEAD to specified state
git reset HEAD~1git tag
Create, list, or delete tags
git tag v1.0.0git remote
Manage set of tracked repositories
git remote -vgit config
Get and set repository or global options
git config --global user.name "Your Name"git show
Show various types of objects
git showgit revert
Revert commits by creating new commit
git revert HEADgit switch
Switch branches (newer alternative to checkout)
git switch maingit restore
Restore working tree files
git restore file.txtgit cherry-pick
Apply changes from specific commits
git cherry-pick <commit-hash>git clean
Remove untracked files
git clean -n