Optimize the local repository
Optimizes the local repository.
The Git snippet collection contains a variety of short tips and tricks for all currently maintained versions of git. It includes most commonly-used commands and covers various use-cases in the form of simplified documentation, complete with multiple examples.
Optimizes the local repository.
Pulls all submodules from their respective remotes.
Removes a file from the last commit without changing its message.
Copies a file from another branch to the current branch.
Deletes a local branch.
Renames a branch both locally and on the remote.
Displays differences between staged or unstaged changes and the last commit.
Applies the latest stash.
Applies a specific stash.
Changes the URL of the remote repository.
Initializes a new git repository, setting up all the configuration files needed by git.
Deletes a specific stash.
Deletes all stashes.
Discards all uncommitted changes to the current branch.
Configures the line endings for a repository.
Restores a file deleted in a specific commit.
Adds files to the staging area.
Removes files from the staging area.
Creates a new commit skipping the pre-commit and commit-msg hooks.
Creates a fixup commit that can be autosquashed in the next rebase.
Displays the difference between two branches.
Adds a new submodule to the repository.
Configures git to autocorrect mistyped commands.
Creates and switches to a new branch, optionally setting up a remote tracking branch.