Sometimes we need to ignore one or more files, for an undetermined amount of time, which usually is a short period. That because we don’t want to upload changes that shouldn’t be on the repository… Is there a way to ignore files temporarily?

It does and it’s pretty simple… you can use one GIT command to ignore, and the same one to track back the files.

To ignore, you should do as follows:

To undo the above command, do as follows:

This way you can sepparate files that should not be pushed, but that also have changes you need to develop locally.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.