Pick changes from one or more Git commits
Learn how to apply changes introduced by one or more commits to your current branch (cherry-picking).
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.
Learn how to apply changes introduced by one or more commits to your current branch (cherry-picking).
Learn how to configure the text editor used by Git for commit messages and other text editing tasks.
Configure user information for Git to associate commits with a user.
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
The first step to working with a Git repository is often to clone it to your local machine.
Have you accidentally deleted a file? Or maybe you need to restore a file that was deleted? Here's how Git can help you.
Learn how to add multiple authors to a git commit with this quick and easy tip.
If you need to copy a file from another branch to the current branch, here's an easy way to do it.
Learn how to effectively use Git's staging area, by adding or removing files from it.
Made some changes you don't want to keep? Learn how to discard uncommitted or untracked changes in Git.
Learn how to open the Git configuration file in the Git text editor, for editing.
Want to compare the changes between two branches in Git? Here's how you can do it.
Get the name of the current branch in Git.
Learn how to create a new Git branch and optionally set up a remote tracking branch.
Mistyping commands often? Enable Git's autocorrect feature to automatically fix them.
View differences between staged or unstaged changes and the last commit in Git.
If you're working with a team using different operating systems, configuring line endings can help maintain consistency.
The first step is often the hardest, yet creating a Git repository is as simple as running a single command.
Learn how to easily switch between branches in Git.