Some strange behavior of git

4 messages, 4 authors, 2016-06-15 · open the first message on its own page

Some strange behavior of git

From: Olga Pshenichnikova <hidden>
Date: 2016-06-15 23:08:25

Hello,
we use git in our project.
What can be cause for further confusing behavior?

     git@ip5server:~$ git status
     On branch master
     Untracked files:
       (use "git add <file>..." to include in what will be committed)

         app/addons/arliteks/

     nothing added to commit but untracked files present (use "git add" 
to track)
     git@ip5server:~$ git clean -dn
     Would remove app/addons/arliteks/
     Would remove design/
     Would remove js/
     Would remove var/langs/en/

Why I don't see all 4 directories in first command?

Re: Some strange behavior of git

From: Stefan Beller <hidden>
Date: 2016-06-15 23:08:25

On Wed, Feb 24, 2016 at 2:43 PM, Olga Pshenichnikova [off-list ref] wrote:
Hello,
we use git in our project.
What can be cause for further confusing behavior?

    git@ip5server:~$ git status
    On branch master
    Untracked files:
      (use "git add <file>..." to include in what will be committed)

        app/addons/arliteks/

    nothing added to commit but untracked files present (use "git add" to
track)
    git@ip5server:~$ git clean -dn
    Would remove app/addons/arliteks/
    Would remove design/
    Would remove js/
    Would remove var/langs/en/

Why I don't see all 4 directories in first command?
Look at the effects of the .gitignore file

https://git-scm.com/docs/gitignore
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

RE: Some strange behavior of git

From: Randall S. Becker <hidden>
Date: 2016-06-15 23:08:25

On February 24, 2016 5:43 PM, Olga Pshenichnikova wrote
What can be cause for further confusing behavior?

     git@ip5server:~$ git status
     On branch master
     Untracked files:
       (use "git add <file>..." to include in what will be committed)

         app/addons/arliteks/

     nothing added to commit but untracked files present (use "git add"
to track)
     git@ip5server:~$ git clean -dn
     Would remove app/addons/arliteks/
     Would remove design/
     Would remove js/
     Would remove var/langs/en/

Why I don't see all 4 directories in first command?
What do your .gitignore files contain in this project?

Cheers,
Randall
-- Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400)/NonStop(211288444200000000)
-- In my real life, I talk too much.

Re: Some strange behavior of git

From: Thomas Gummerer <hidden>
Date: 2016-06-15 23:08:27

On 02/25, Olga Pshenichnikova wrote:
Hello,
we use git in our project.
What can be cause for further confusing behavior?

    git@ip5server:~$ git status
    On branch master
    Untracked files:
      (use "git add <file>..." to include in what will be committed)

        app/addons/arliteks/

    nothing added to commit but untracked files present (use "git add" to
track)
    git@ip5server:~$ git clean -dn
    Would remove app/addons/arliteks/
    Would remove design/
    Would remove js/
    Would remove var/langs/en/

Why I don't see all 4 directories in first command?
Are the design/, js/ and var/langs/en/ directories empty?  Git doesn't
track empty directories, so they won't show up in git status, but with
git clean -d you specify that Git should also remove untracked
directories, which is why you see them here.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help