git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
* 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, back to index

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

git@vger.kernel.org list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox