Developer · DEV-19Submit an issue

Git command reference

Search common Git configuration, branch, commit, remote, undo and stash commands by category.

Browse categories · Copy Git commands
Search commands
CategoryCommandDescription
Configgit config --global user.name "Your Name"Set the global author name
Configgit config --global user.email "developer@utilcove.com"Set the global author email
Repositorygit initCreate a repository in the current directory
Repositorygit clone <url>Clone a remote repository
Repositorygit statusShow working tree status
Branchgit branchList local branches
Branchgit switch -c <branch>Create and switch to a new branch
Branchgit switch <branch>Switch to an existing branch
Branchgit merge <branch>Merge a branch into the current branch
Commitgit add .Stage all current changes
Commitgit commit -m "message"Commit staged changes with a message
Commitgit log --onelineShow compact commit history
Remotegit remote -vShow configured remote repositories
Remotegit pullDownload and merge remote changes
Remotegit push -u origin <branch>Push the current branch and set upstream
Undogit restore <file>Discard unstaged changes in a file
Undogit restore --staged <file>Unstage a file without discarding changes
Stashgit stash pushTemporarily save uncommitted changes
Stashgit stash popRestore the latest stashed changes
Usage guide and examples

Git command reference

Search common Git configuration, branch, commit, remote, undo and stash commands by category.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

stash

What to check in the result

git stash push
git stash pop