git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Untracked files when git status executed on a new folder
@ 2015-06-23 15:19 Víctor Martín Hernández
  2015-06-23 16:54 ` Johannes Löthberg
  0 siblings, 1 reply; 3+ messages in thread
From: Víctor Martín Hernández @ 2015-06-23 15:19 UTC (permalink / raw)
  To: git

Hi all.
Today I've had an unexpected behaviour that I'm not sure if is a bug or
I'm not doing git best practices... (surely the latest...)
The sequence of actions is :

1. create a new subfolder of my local repository branch
2. cd to this new folder, and create a new file
3. execute git status from the new folder

Doing that, the new folder doesn't appear as untracked.

4. cd ..
5. git status
In this case, the new folder appears.

If I create a new folder on the same level that the new one created in
step 1, cd into it, and execute git status, the folder created in step 1
appears as untracked.

After step 3 I have executed git commit and git push to the remote, and
later another user has realized that the new file was not present.

Please let me know if you understand my explanation, and if it's a bug
or just that I'm not as experienced as I'd like with git ;)

THANKS!!
Víctor

-- 
---
Víctor Martín Hernández

R&D Software Engineer
Instituto de Ciencias del Espacio (ICE/CSIC), and 
Institut d'Estudis Espacials de Catalunya (IEEC)

Campus UAB, Carrer de Can Magrans, s/n
08193  Bellaterra (Cerdanyola del Vallès) - Barcelona
Tel. : +34 93 586 8782
Web:   http://gwart.ice.cat/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Untracked files when git status executed on a new folder
  2015-06-23 15:19 Untracked files when git status executed on a new folder Víctor Martín Hernández
@ 2015-06-23 16:54 ` Johannes Löthberg
  2015-06-24 15:28   ` Víctor Martín Hernández
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Löthberg @ 2015-06-23 16:54 UTC (permalink / raw)
  To: Víctor Martín Hernández; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

On 23/06, Víctor Martín Hernández wrote:
>Hi all.
>Today I've had an unexpected behaviour that I'm not sure if is a bug or
>I'm not doing git best practices... (surely the latest...)
>The sequence of actions is :
>
>1. create a new subfolder of my local repository branch
>2. cd to this new folder, and create a new file
>3. execute git status from the new folder
>
>Doing that, the new folder doesn't appear as untracked.
>
>4. cd ..
>5. git status
>In this case, the new folder appears.
>
>If I create a new folder on the same level that the new one created in
>step 1, cd into it, and execute git status, the folder created in step 1
>appears as untracked.
>

Can't reproduce on Git 2.4.4/Linux, which Git version and platform are 
you using?

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1495 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Untracked files when git status executed on a new folder
  2015-06-23 16:54 ` Johannes Löthberg
@ 2015-06-24 15:28   ` Víctor Martín Hernández
  0 siblings, 0 replies; 3+ messages in thread
From: Víctor Martín Hernández @ 2015-06-24 15:28 UTC (permalink / raw)
  To: Johannes Löthberg; +Cc: git

Hi all,
sorry for not having sent these informations in my first e-mail.
I'm working on a Debian Jessie laptop, with git version 2.1.4. 
I watched the same behavior in a workmate's laptop which uses last
version of Ubuntu, but now I cannot contact him to get git version.

Afger "apt-get update" and "apg-get install --only-upgrade git", the
response is that I have the latest git version, what sounds strange to
me if you say you use version 2.4.4.


Thanks!!

Víctor


 

On Tue, 2015-06-23 at 18:54 +0200, Johannes Löthberg wrote:
> On 23/06, Víctor Martín Hernández wrote:
> >Hi all.
> >Today I've had an unexpected behaviour that I'm not sure if is a bug or
> >I'm not doing git best practices... (surely the latest...)
> >The sequence of actions is :
> >
> >1. create a new subfolder of my local repository branch
> >2. cd to this new folder, and create a new file
> >3. execute git status from the new folder
> >
> >Doing that, the new folder doesn't appear as untracked.
> >
> >4. cd ..
> >5. git status
> >In this case, the new folder appears.
> >
> >If I create a new folder on the same level that the new one created in
> >step 1, cd into it, and execute git status, the folder created in step 1
> >appears as untracked.
> >
> 
> Can't reproduce on Git 2.4.4/Linux, which Git version and platform are 
> you using?
> 

-- 
---
Víctor Martín Hernández

R&D Software Engineer
Instituto de Ciencias del Espacio (ICE/CSIC), and 
Institut d'Estudis Espacials de Catalunya (IEEC)

Campus UAB, Carrer de Can Magrans, s/n
08193  Bellaterra (Cerdanyola del Vallès) - Barcelona
Tel. : +34 93 586 8782
Web:   http://gwart.ice.cat/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-24 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 15:19 Untracked files when git status executed on a new folder Víctor Martín Hernández
2015-06-23 16:54 ` Johannes Löthberg
2015-06-24 15:28   ` Víctor Martín Hernández

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 NNTP newsgroup(s).