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

Difference Between Forking and Cloning on GitHubDifferentiate between cloning and forking on GitHub. Difference Between Forking and Branching on GitHubDifferentiate between branching and forking on GitHub. How to Clone With Username and Password in GitClone a Git repository with a username and password by embedding credentials in the URL, caching them with a credential helper, or using an access token (PAT). How to Merge a Git Branch Into Master in GitGit merge is an excellent feature that allows developers to combine different feature branches to the production branch. This tutorial demonstrates various strategies to merge features branches with the master. It will also explore the semantics of merge and rebase as well, so developer choose the best one against the other How to Undo Commit in GitThis tutorial demonstrates to undo the most recent local commit in git using different commands How to Force Git Pull to Overwrite Local FilesThis tutorial demonstrates how to force pull the repository to overwrite local files using Git commands. How to Squash Commits in GitThis tutorial is about squashing of commits in Git. In Git, squashing of commits means to combine multiple commits into one. How to Resolve Merge Conflicts in GitThis tutorial is about resolving the conflicts arising when merging branches in Git. How to Reset HEAD in GitThis tutorial demonstrates how to do the reset HEAD for restoring last commit in Git. How to Stash Specific Files in GitThis article introduces how to stash specific files in Git How to Reattach Head in GitThis tutorial demonstrates how to head detached in Git using various commands. How to Cherry-Pick a Commit in GitThis tutorial demonstrates Cherry-picking a commit in Git using commands. How to Stash Changes of the Files by Name in GitThis tutorial is about stashing changes of the files by name in Git How to Remove Committed Files in GitThis tutorial demonstrates how to remove already commit files from Git using different command lines. How to Force Pull Overwrite in GitThis tutorial demonstrates how to force pull everything on every pull using various commands in Git How to Set Up Git RemoteSet up git remote for tracking repositories How to Reset File to Be Same as Master Branch in GitThe article below explains the ways to revert files to the similar state as in master branch. How to Remove Uncommitted Changes in GitUndo uncommitted changes How to Reset and Restore in GitThis tutorial demonstrates the definition of Git Restore Command and the major difference between the git restore and git reset commands in Git. How to Rename Branch in GitThis tutorial demonstrates how to rename a local and remote branch in Git using different commands. How to Move Commit to Another Branch in GitThis tutorial demonstrates how to move recent commits to a new or already existing branches using various commands in git How to List All Remote Branches in GitThis tutorial demonstrates how to list all remote branches using different command in Git. How to Delete Git Local RepositoryThis tutorial demonstrates how to delete a local repository using various commands in Git. How to View Commit History of a File in GitThis tutorial is about viewing commit history of a file in Git