Re: [git-users] Re: Difference between git add . and git add --all?

2019-02-04 Thread Philip Oakley
IIRC it is all about who does the expansion of the "." compared to the 
"--all".


On 04/02/2019 19:27, nsugra...@gmail.com wrote:



On Wednesday, December 7, 2011 at 6:39:15 AM UTC-8, haziz wrote:

What is the practical difference between git add . and git add --all?

--
You received this message because you are subscribed to the Google 
Groups "Git for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to git-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: Difference between git add . and git add --all?

2019-02-04 Thread nsugraiah


On Wednesday, December 7, 2011 at 6:39:15 AM UTC-8, haziz wrote:
>
> What is the practical difference between git add . and git add --all?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: Difference between git add . and git add --all?

2019-02-04 Thread nsugraiah

hello,

How to add multiple folders in GIT.

something like this,

I have git repo as below

projectFolder
--> .git
--> folder1
 -->subfolder1 --> files
-->folder2
--> subfolder2 
  subfolder21 --> files(1--n)

and I want add multiple new folders
--> .git
--> folder1
 -->subfolder1 --> files
-->folder2
--> subfolder2 
  subfolder21 --> files(1--n)
-->newfolder1
-->newSubFolder1 --> files(1...N)
-->newFolder2
-->newSubFolder2
 -->newSubFolder21 --> files(1...N)

The ones shaded in yellow are similar folder structure need to be added it 
will have multiple folders with multiple files in it.

When I copy the folder the 'git status' doesn't show any new folders added. 
git add -A doesn't help.

Please let me how to add folders and subfolders with files within it.

Thanks,

On Wednesday, December 7, 2011 at 6:47:10 AM UTC-8, Thomas Ferris 
Nicolaisen wrote:
>
> From git add --help
>
>-A, --all
>Like -u, but match  against files in the working 
> tree in addition to the index. That means that it will find new files as 
> well as staging modified content and
>removing files that are no longer in the working tree.
>
> In other words, "git add ." will only add new files and modified files to 
> the index to be committed. It will not schedule removed files for deletion. 
>
> If I've done a lot of restructuring, and moved a lot files around, I try 
> to always use add -A so I don't forget committing file deletions.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Re: Difference between git add . and git add --all?

2011-12-07 Thread Thomas Ferris Nicolaisen
>From git add --help

   -A, --all
   Like -u, but match  against files in the working 
tree in addition to the index. That means that it will find new files as 
well as staging modified content and
   removing files that are no longer in the working tree.

In other words, "git add ." will only add new files and modified files to 
the index to be committed. It will not schedule removed files for deletion. 

If I've done a lot of restructuring, and moved a lot files around, I try to 
always use add -A so I don't forget committing file deletions.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/7sqlNxZVnG8J.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.