Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] git help

Git doesn't track directories but only files. "git add -f" also adds ignored files. Adding a directory causes git to add all files recursively in that directory. Combining that with "-f" means you added recursively all files - even those which would normally be ignored. Files can be ignored in git by:
- .gitignore in the directory
- . gitignore in a parent directory
-  .git/info/exclude
-  config: core.excludesfile

If the "-f" made a difference, one of the 4 thing must have applied to some of the files in that folder.

On Mon, May 13, 2013 at 9:59 AM, Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
Not to worry. It turns out for some reason I had to do a 'git add -f src' to get git to recognize the directory. Go figure.

Greg

On May 13, 2013, at 9:39 AM, Greg Watson <g.watson@xxxxxxxxxxxx> wrote:

> I checked but there is no .gitignore containing this directory.
>
> Further weirdness is that egit (in Eclipse) shows the directory itself as not being in the repo, but its subdirectories and files are. Command-line git doesn't say anything about it.
>
> Greg
>
> On May 13, 2013, at 9:27 AM, Rodrigo Fraxino Araujo <rfaraujo@xxxxxxxxxxxxxxxxxx> wrote:
>
>> Hey Greg,
>>
>> Have you tried checking if there is something blocking the
>> dir on .gitignore?
>>
>> Regards,
>> Rodrigo.
>>
>> On Mon, 13 May 2013 08:27:03 -0400
>> Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
>>
>>> Hi,
>>>
>>> I have the following problem and would appreciate any help. My local
>>> repo contains a directory (called 'src' for arguments sake). The
>>> directory and its contents are committed in my local repo (git status
>>> reports 'nothing to commit'). My local repo is also in sync with the
>>> remote master (git pull reports 'Current branch master is up to
>>> date'). However the remote repo does not contain the src directory.
>>> Can anyone explain this and tell me how to update the remote repo
>>> correctly?
>>>
>>> Thanks
>>> Greg
>>> _______________________________________________
>>> ptp-dev mailing list
>>> ptp-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>>>
>>
>> _______________________________________________
>> ptp-dev mailing list
>> ptp-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev







--
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309

Back to the top