How-to articles, tricks, and solutions about GIT REPOSITORY

Best and Safe Way to Merge a Git Branch into Master

Cannot find a best and safe way for merging local branch into master? Check this tutorial which opens up the right method you need for solving this problem.

How to Add a Submodule in Git

Working with submodules is a common practice in Git. Here, we will represent to you the commands that will help you to add a submodule to a repository.

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 Automatically Resolve Git Merge Conflicts in Favor of Any Side

Read this tutorial and solve the problem of resolving git merge conflicts in favor of pulled changes. Get overall understanding of Git merge strategies.

How to Checkout the Previous Branch in Git

This tutorial provides an easy way of checking out the previous branch. Find a shortcut to the command line to save your time and an experimental solution.

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 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 Clone Including Git Submodules

Get answers to the problem of cloning the parent repository so as the submodule folder does not stay empty. Get several methods regarding the Git versions.

How to Clone into a Non-Empty Git Directory

This tutorial provides an easy way of merging the files of the remote repository into the local non-empty directory. Read and find useful information.

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 Delete a File or a Directory from a Git Repository

Sometimes it is necessary to delete a particular file from your git repository. Learn how to do it following the guidelines presented in this tutorial.

How to Delete Already Merged Git Branches

Know how to delete already merged git branches to keep your repository clean and easy to browse and how to exclude branches you do not want to delete.

How to Delete Git Repository Created with Init

In this tutorial, you will find out two methods of deleting the git repository created with the git init command for Linux and Windows operating systems.

How to Import Multiple Projects into a Single Git Repository

In this tutorial, you will get an answer to your problem of managing multiple projects into a single repository step by step with the most used commands.

How to Make the Current Commit the Only Commit in a Git Repository

In this tutorial, you will get the codes of how to make the current commit as an initial one in one repository. The case of submodules is also discussed.

How to Merge Local Uncommitted Changes into Another Git Branch

Read this tutorial and find solution to the question of merging local uncommitted changes from one Git branch into another. Also, read important tips.

How to Merge Two Git Repositories

In this tutorial, you will find out how to merge several projects in a single repository without losing history. Get the essential information and codes.

How to Properly Rename a Directory in a Git Repository

This tutorial will provide you the simplest and appropriate explanation concerning the question of properly changing a directory name in a git repository.

How to Pull the Latest Git Submodule

Learn more about git submodules in this short tutorial. Here you will also find out how to pull the latest git submodule in a relatively fast and easy way.

How to Reference the Initial Git Commit

This Git tutorial will provide you the best and appropriate explanation concerning the question of referencing the initial commit in a git repository.

How to Remove Files from Git Commit

This tutorial will help you get the answer to the question of removing files from git commit based on different scenarios. Also, read about used commands.

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 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 Stash an Untracked File in Git

Read this tutorial and solve the problem of stashing untracked files including ignored files in .gitignore. Find method presented by Git new versions.

How to Stop Tracking and Start Ignoring in Git

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

1 2