How-to articles, tricks, and solutions about .GITIGNORE

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 Discard Unstaged Changes in Git

The tutorial provides you with information you need to discard the unstaged changes in the working copy. Find several ways of discarding and get the codes.

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 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.