Practical solutions

Git Howtos How-To Guides

Solve the problem. Keep building. Collection of Git how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Revert Back to a Previous Commit in the Repository in GitThis tutorial is about reverting back to a previous commit in the repository in Git How to Merge Branches Without Fast Forward in GitThis tutorial is about merging branches without fast forward in Git How to Rebase Local Branch When Pulling Changes From the Remote Repository Branch in GitThis tutorial is about rebasing the local branch when pulling changes from the remote repository branch in Git How to View List of Stash Entries in GitThis tutorial is about viewing the list of stash entries in Git. How to Undo a Commit Before Pushing Remote Repository in GitThis tutorial is about resetting a commit that has not been pushed to the remote repository in Git. How to Create Branch From Another Branch in GitThis tutorial will teach you how to create a branch from another branch in Git. How to Revert Merge Commit in GitThis tutorial demonstrates to revert a commit that is already pushed to a remote branch using a command line in Git How to Merge With Force Overwrite in GitThis tutorial demonstrates how to merge in Git with force overwrite using various commands. How to Switch Between Branches in GitThis tutorial is about switching between branches using git checkout and git switch in Git. How to Undo Pushed Commits in Git With Reset and RevertWe show three methods to undo commits pushed into a remote repository with the use of the reset, revert, and checkout git commands. How to Show Information About Remote Repository in GitThis tutorial is about showing information about the remote repository in Git. How to Pull Master Into Branch in GitThis article explains how to pull all changes from master into the development branch in Git. How to Add Folder in GitThis tutorial introduces how to add a folder to the staged contents in Git. How to View Git ConfigurationThis tutorial demonstrates how to view Git configuration through various Git commands. How to Show Changes in Git CommitYou can show commit changes in Git with this tutorial's help. We use the Git diff, and many other Git commands. You will also find helpful shortcuts and options to quickly show the specific changes you want. How to Delete All Local Branches in GitThis tutorial shows how to delete all local branches with the help of scripting in Git. We provide helpful options for different use cases. We also show a one-line hard delete solution at the end of the tutorial. How to Clone All Branches in GitThis article explains how to clone all branches in Git. How to Clone a Repo or a Branch With SSH Key in GitYou can Git clone using SSH key with this tutorial - setup SSH in Git, update SSH public key in GitHub, and use options - clone only a specific branch, into a chosen location, or only recent commits. How to Merge a Remote Branch to a Local Branch in GitThis article explains how to merge a remote branch to the local branch in Git. How to Create Tags in the Git RepositoryIn Git, we may want to mark certain commits or specific points in the history of the project repository. We can do so using the git tag command. How to Remove Changes From Staging Area in GitThis tutorial is about removing changes from staging area in Git. How to Add File Entries to the gitignore File in GitThis tutorial is about adding file entries to a .gitignore file in Git. How to Add Files in GitThis article demonstrates the different methods to add files into your repository on Git. How to Git Push to Another Branch With a Different NameThis article teaches an option to Git push to specific branch with a name of your choice. You can learn to do so by following along with this tutorial. We use the Git push command but pass some exciting options to it. We also take a peak into Git refspecs that are key to achieve this functionality.