How-to articles, tricks, and solutions about GIT

How to Configure Git to Ignore File Mode Changes

Sometimes, working on local development there is a need to change permissions on various files. The tutorial will show how to ignore the File Mode changes.

How to Push and Track a New Local Branch to a Remote Repository in Git

Read how to push and track a new local branch to a remote repository in this tutorial. Learn the right commands and make your working process easier.

How to Remove Untracked Files from the Current Working Tree in Git

While working with Git, it is sometimes necessary to get rid of local (untracked) files from your current Working Tree. Learn how to do it in this snippet.

How to Merge a Specific Commit in Git

Sometimes it is necessary to merge a specific commit in Git. The below-given snippet is aimed at showing you how to do it in a rather fast and easy way.

How to Clone a Single Branch in Git

Sometimes it is necessary for developers to clone just a single git branch. This short tutorial will help you to clone a single and specific branch in Git.

How to Checkout a Remote Branch in Git

In the framework of group work, coworkers need to access each other’s repositories. Learn how to do it with the help of git checkout here.

How to Clone Remote Git Branches

Cloning is an essential process in Git. In this tutorial, you will find a solution to the problem of cloning remote branches and copy the codes right away.

How to Change Older or Multiple Git Commit Messages

Sometimes, you need to go back to the older commits and modify commit messages. In this tutorial find how to change the older and multiple commit messages.

How to Add an Empty Directory to a Git Repository

The empty directories will not be added to version control by Git as it supports only files. In this snippet, find some fast solutions to this problem.

How to Force Git Pull to Override Local Files

This tutorial will show you how to force git pull in case of untracked files which will be overwritten. Find important tips to avoid unwanted mistakes.

How to Undo Git Merge

In this snippet, you will find out how to undo git merge in a relatively fast way.

How to Reset or Revert a File to a Specific Version in Git

There are cases when you need to revert or reset a file to a specific version. With the help of this tutorial you will easily manage it.

How to Remove a Git Submodule

With the help of this tutorial, you will learn how to remove an unwanted Git submodule easily.

How to Stop Tracking and Start Ignoring in Git

This snippet explains how to stop tracking and ignore changes to a file in git.

How to Revert a Git Repository to a Previous Commit

Read this tutorial and learn how to temporarily switch to different commit, hard delete unpublished commits, and undo published commits with new commits.

How to Undo Git Add

Sometimes, it is necessary to undo something while working in Git. Find your fast solution for undoing git add in this snippet.

How to Clone a Repository

It is very important to obtain a development copy of an existing central repository. Learn how to clone the remote repository into the current directory.

How to Stash Git Changes

Don’t know how to stash the dirty state of the working directory and save it on a stack of incomplete changes? See how to stash with the given steps.

How to Combine Multiple Git Commits into One

Don’t overload your git log with meaningless commits. Combine multiple commits into one with the help of our tutorial. See the explanation with codes.

How to Change Commit Message In Git

Don’t underestimate the role of the commit message, as it is important for managing the work. In this snippet, you will find the steps to change your commit message.

How to Rebase Git Branch

Don’t waste your time struggling with Git. Here you can find the three commands that you should run to rebase your branch. See the explanation with codes.

How to Install Git on Ubuntu 18.04

Working with Git starts with installing. This tutorial shows how to install Git on Linux. Get the codes of installing Git from repository and source code.

How to Retrieve Hash for Commits in Git

Git allows recovering wrong changes in a project. This tutorial shows how to find information about the latest commit and get the latest commit’s hash.

How to Delete Both Local and Remote Branches in Git

It is recommended to delete the branch after merging it into the main master. Read the tutorial and find out how to delete branches locally and remotely.

How to Undo Recent Commits in Git

Git has a lot of greatest advantages and one of them is considered undoing recent commits. Find several ways of undoing changes and get a copy of the codes.