Can I track outside this directory?

QuestionsQuestions4 SkillsProGit Config ManagementOct, 26 2025
0153

No, Git does not track changes outside of the directory where the .git folder is located. Each Git repository is self-contained, meaning it only monitors the files and directories within its own directory structure. If you want to track changes in another directory, you would need to initialize a separate Git repository in that directory.

However, you can use Git submodules or Git subtrees if you need to manage multiple repositories together, but they still operate within their own contexts.

0 Comments

no data
Be the first to share your comment!