* Re-enabled a folder set as untracked
@ 2019-06-10 20:11 Samuel Rabini
2019-06-21 9:11 ` Philip Oakley
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Rabini @ 2019-06-10 20:11 UTC (permalink / raw)
To: git
Hi,
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.
Thanks in advance,
Samuel Rabini
Software Architect
M: +39 339 81 24 118
samuel.rabini@gmail.com | www.samuelrabini.com <http://www.samuelrabini.com/>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Re-enabled a folder set as untracked
2019-06-10 20:11 Re-enabled a folder set as untracked Samuel Rabini
@ 2019-06-21 9:11 ` Philip Oakley
0 siblings, 0 replies; 2+ messages in thread
From: Philip Oakley @ 2019-06-21 9:11 UTC (permalink / raw)
To: Samuel Rabini, git
On 10/06/2019 21:11, Samuel Rabini wrote:
> 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.
>
I don't use SourceTree. I doubt that your suggested
git-add.txt-adduntrackedis the command used, as that is within a command
line sub-menu.
I would guess that the command was a variant of
https://git-scm.com/docs/git-rm with an option to retain the working
tree file.
You ask about re-enabling the tracking of a _folder_ - this is a
misunderstanding as git only tracks the named files, rather than
complete folders.
To re-track a file, simply use `git add <pathspec>` (see the
documentation notes about how the pathspec can add the contents of a
complete folder..).
--
Philip
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-21 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10 20:11 Re-enabled a folder set as untracked Samuel Rabini
2019-06-21 9:11 ` Philip Oakley
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).