⊗gtPmBsDTS 13 of 65 menu

Start watching a folder in Git

Adding many files manually is not very convenient. Therefore, you can make all files in a given folder monitored. Let's see in practice. Let's say our project has the following folder script:

  • index.html
  • styles.css
  • script/
    • index.js

Let's track its current contents:

git add script

In this case, only those files that were in this folder at the time the command was executed will be monitored, but not new files.

The command itself can be executed multiple times, in which case new files will become tracked, and nothing will happen to those that Git is already tracking.

Let's say you have a folder with files in your project. Make all files in this folder trackable.

Add a new file to this folder. Make sure the new file is untracked.

English
БеларускаяDeutschEspañolFrançaisPortuguêsРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline