Config
- Config editor
How to config a custom editor in Git?
-
How to set up a commit template when committing?
-
How to set up a custom visual tool as the default git difftool?
-
How to ignore files to make Git not to track them?
Clone
-
How to clone only part of commits of a huge repository
Branch
-
How to create a branch, rename a branch delete a branch, list all branches, etc.
-
How to get a new branch from a remote repository?
-
local branches track remote branches
How to set a local branch to track a remote branch?
Stash
-
How to save changes temporally, apply changes, list stashes, delete a stash?
Commit
-
How to commit an empty commit but a commit message?
-
How to commit with changes from an existing commit?
Undo
-
How to recover a file?
-
How to unstage a file?
-
How to revert a commit?
-
How to undo merge or pull operation?
Remote
-
How to add a remote, delete a remote, change the URL of a remote, etc.
Diff
-
How to check differences between working tree, index, a specific commit?
View
-
How to list untracked files?
-
How to get the count of all the tracked files?
-
View contents of a file in a commit
How to get contents of a file in a specific commit?
Delete
-
Delete files from existing commits
How to remove a file from existing commits?
Log
-
How to view the last several commits, search the commit history with string, list the commits graphically, check which commit changed a string, etc.