{"thread":{"id":"51283","subject":"Re-enabled a folder set as untracked","startedAt":"2019-06-10T20:11:28Z","lastAt":"2019-06-21T09:11:21Z","messageCount":2,"participants":["Samuel Rabini","Philip Oakley"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"376966","messageId":"4AB7124D-0704-4C6E-B3B1-C0C1BF5C89B0@gmail.com","threadId":"51283","inReplyTo":null,"subject":"Re-enabled a folder set as untracked","fromName":"Samuel Rabini","fromEmail":"samuel.rabini@gmail.com","sentAt":"2019-06-10T20:11:24Z","receivedAt":"2019-06-10T20:11:28Z","isPatch":false,"sender":{"key":"samuel.rabini@gmail.com","avatar":null},"body":"Hi,\n\nUsing SourceTree I issue the Stop Tracking command (I think it executed the add untracked https://git-scm.com/docs/git-add#Documentation/git-add.txt-adduntracked). Is there anyway to revert this command and re-enable the folder? I was able to re-add to the index all files into the folder by the git add -f pathtofolder command, but new files are not asked to be committed and pushed.\n\nThanks in advance,\n\nSamuel Rabini\nSoftware Architect\nM: +39 339 81 24 118\nsamuel.rabini@gmail.com | www.samuelrabini.com <http://www.samuelrabini.com/>\n \n \n\n\n"},{"id":"377721","messageId":"5b183aa2-fa8d-6278-5f87-23f00d16c0d8@iee.org","threadId":"51283","inReplyTo":"4AB7124D-0704-4C6E-B3B1-C0C1BF5C89B0@gmail.com","subject":"Re: Re-enabled a folder set as untracked","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2019-06-21T09:11:21Z","receivedAt":"2019-06-21T09:11:21Z","isPatch":false,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"On 10/06/2019 21:11, Samuel Rabini wrote:\n> Using SourceTree I issue the Stop Tracking command (I think it executed the add untracked https://git-scm.com/docs/git-add#Documentation/git-add.txt-adduntracked). Is there anyway to revert this command and re-enable the folder? I was able to re-add to the index all files into the folder by the git add -f pathtofolder command, but new files are not asked to be committed and pushed.\n>\n\nI don't use SourceTree. I doubt that your suggested \ngit-add.txt-adduntrackedis the command used, as that is within a command \nline sub-menu.\n\nI would guess that the command was a variant of \nhttps://git-scm.com/docs/git-rm with an option to retain the working \ntree file.\n\nYou ask about re-enabling the tracking of a _folder_ - this is a \nmisunderstanding as git only tracks the named files, rather than \ncomplete folders.\n\nTo re-track a file, simply use `git add <pathspec>` (see the \ndocumentation notes about how the pathspec can add the contents of a \ncomplete folder..).\n\n--\nPhilip\n"}]}