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 Recover Stash in GitThis tutorial demonstrates recovering stash through Git command line. How to Copy Remote Branch to Local Branch in GitWe copy the contents of a remote branch to a local branch using three methods. The latest way is to use the git switch command with the copy option, but we also show the old git checkout method and the git branch command with the copy flag. How to Undo Git Stash Pop ConflictsWe show two ways to undo git stash pop with merge conflicts. You may either choose to only clean up the bad merges to undo failed stash pop using two commands. Else, you could locally edit or pull the correct changes in your files to resolve and merge with good commits. How to Add Remote Branch in GitThis tutorial demonstrates how to add remote branch in Git using command line. How to Remove Unpushed Commits in GitThis tutorial is about removing unpushed commits in Git using the git reset command. How to View Logs of a Particular Branch in GitThis tutorial is about viewing the logs of a particular branch in Git. How to Push From an Existing Remote Repository to a Different Remote Repository in GitThis tutorial is about how to push from an existing remote repository to a different remote repository in Git. How to Delete Merged Branches in GitThis tutorial demonstrates deleting merged branches through the Git command line. How to Clone a Private Repository in GitThis tutorial is about cloning a private repository in Git. How to Create Pull Request From Command Line in GitThis tutorial demonstrates creating pull requests through the command line in Git. How to Compare Files, Commits, and Branches in GitYou can compare files and commits with the git diff command. How to Color the Git ConsoleDifferent methods to color the Git console. How to Export a Git ProjectYou can export a Git project with the git archive command. How to Set Up Meld as Difftool and Mergetool for GitThis article discusses the process of configuring Meld as Git's default diff and merge tool. How to List Git Submodules in GitThis article will discuss how Git submodules work. How to Get the Latest Version of Code in GitThis tutorial demonstrates how to get the latest version of code in Git through the command line. How to Set and Save User Credentials in GitThis tutorial is about setting and saving the user credentials in Git. How to Fork a Repo in GitHubA comprehensive guide on forking in GitHub. How to Remove Commit From History in GitThis tutorial demonstrates how to remove commits from history in Git. How to Track Command History in GitThis tutorial demonstrates how to track the history of commands through the Git command line. How to Show Remote Tracking Branches in GitThis tutorial demonstrates tracking remote branches through the Git command line. How to Push a Specific Commit to a Remote RepositoryYou can specify a commit to push to a remote Git repository. How to Pull a Specific Folder in GitSpecify a folder to pull from a remote Git repository. How to Make an Initial Push to a Remote Repository With GitMake your first push to a remote repo with Git.