Git commands
Questions & Answers
Questions & Answers
How to undo the last commit?
How to change the last commit message?
How to change the last commit?
How to remove files from the staging area?
How to see changes to be commited?
How to see all unstaged changes?
How to create a new branch and switch to it?
How to create a new branch and switch to it with checkout?
How to discard unstaged changes in a file?
How to discard all unstaged changes?
How to create an alias for a command?
How to view a git setting?
How to change the default editor?
How to create an upstream branch automatically?
How to view whitespace issues?
How to enable autocorrect?
How to sort branches based on last activity?
How to find a commit by message?
How to find out who changed the lines of a file?
How to find out who changed some lines of a file?
How to create a new local repository?
How to push a local branch to a remote repository?
How to overwrite commit history on a remote repository?
How to force push a single branch?
How to clone a repository?
How to download and merge remote changes for the current branch?
How to show the current state of a repository?
How to download remote changes from origin?
How to download changes from a remote repository?
How to download all remote changes?
How to use custom terms for bisect?
How to find a commit introducing a bug?
How to merge a remote branch into your current HEAD?
How to add a remote to an existing repository?
How to rename a tracked file?
How to move a tracked file?
How to show the changes in the last commit?
How to show the changes in a commit?
How to show changes in recent commits?
How to show commit messages in a condensed form?
How to find commits that introduced a string?
How to find commits that removed a string?
How to find commits that changed lines with a keyword?
How to stash one file?
How to show the last stashed content?
How to show the contents of a stash?
How to create a branch from a stash?
How to revert an old commit?
How to add and commit files in one command?
How to commit files?
How to add all changes to the staging area?
How to delete a local branch?
How to delete a remote branch?
How to move the last commit to a different branch?
How to view remote repositories?
How to undo the last commit and keep the changes in the staging area?
How to undo the last commit and discard the changes?
How to go back to a specific commit?
How to go back to a specific commit and discard the changes?
How to undo the last N commits?
How to display information about a command?
How to display an alias definition?
How to remove untracked files?
How to remove untracked files and directories?
How to remove ignored files?
How to remove ignored files and directories?
How to remove untracked and ignored files?
How to remove every local branch except the main branch?
How to remove every local branch except the current branch?
How to remove untracked and ignored files and directories?
How to rename a branch?
How to rename the current branch?
How to switch branches?
How to switch branches with checkout?
How to discard unstaged changes in a file with a branch name?
How to remove a file from the index?
How to redo the last commit removed with hard reset?
How to stage selected parts of the changes?
How to discard selected parts of the local changes?
How to search indexed content?
How to search tracked files for multiple patterns?
How to search tracked files in case insensitive mode?
How to tag a commit?
Can't find a solution to your git problem?
Contact us on githint@githint.com and we will add the solution to the site