From: Philip Oakley <philipoakley@iee.org>
To: Samuel Rabini <samuel.rabini@gmail.com>, git@vger.kernel.org
Subject: Re: Re-enabled a folder set as untracked
Date: Fri, 21 Jun 2019 10:11:21 +0100 [thread overview]
Message-ID: <5b183aa2-fa8d-6278-5f87-23f00d16c0d8@iee.org> (raw)
In-Reply-To: <4AB7124D-0704-4C6E-B3B1-C0C1BF5C89B0@gmail.com>
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
prev parent reply other threads:[~2019-06-21 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-10 20:11 Re-enabled a folder set as untracked Samuel Rabini
2019-06-21 9:11 ` Philip Oakley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b183aa2-fa8d-6278-5f87-23f00d16c0d8@iee.org \
--to=philipoakley@iee.org \
--cc=git@vger.kernel.org \
--cc=samuel.rabini@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).