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

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 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 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 Make Git Forget About a Tracked File Which is Now in .gitignore

Read this git tutorial and learn how you can force Git to forget about a file that was tracked but is now in .gitignore list.

How to Move the Recent Git Commits to New or Existing Branch

This tutorial provides you with useful information about how to move the latest commits to a new or existing branch, without changing the original branch.

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 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 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 Show the Changes which Have Been Staged in Git

Read this tutorial and know which commands are used to make it possible to show the changes which have been changed. Other methods are also discussed.

How to Stash Only One File out of Multiple Files that Have Changed in Git

In this tutorial you will get the answer to the question of how to stash only one file among multiple files. Read and choose the method best suited to you.

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 Unstage a Deleted File in Git

This tutorial will give the answer to the question of unstaging a deleted file in Git in a right and easy way. Also, read about git checkout and git reset.