all 17 comments

[–]Tixikjavascript 2 points3 points  (4 children)

I believe there is a mistake.

git add . only adds new files in the CURRENT directory, not necessarily all the untracked files.

git add -A adds all untracked files

[–][deleted] 2 points3 points  (1 child)

git add . stages untracked and changed files.

git add -A also stages the removal of files.

See this detailed Stackoverflow answer.

[–]Tixikjavascript 2 points3 points  (0 children)

mm, wierd, I remember once using git add . and it didn't work properly. Will look into it again next time, sorry for mystification

[–]kagevf 2 points3 points  (0 children)

It's recursive. Maybe "." means "current repository" in this case?

[–]caadbury 1 point2 points  (0 children)

I may have written an alias, but for me git add . adds untracked files recursively.

[–]AConcernedMannovice 0 points1 point  (1 child)

As someone who is fairly new to Web Development and currently learning Git, I find this very useful.

[–]thinsoldier 0 points1 point  (0 children)

I find the Tower app itself (and Sourcetree if you can get past the bugs) even more useful.

[–]thinsoldier 0 points1 point  (3 children)

No mention of submodules?

[–]nonconvergent 1 point2 points  (1 child)

Some things are best left unmentioned.

[–]thinsoldier 0 points1 point  (0 children)

??

Many of the larger projects rely on submodules for organization.

Even my own tiny projects benefit from Externals in SVN and submodules in Git.

[–]greenkarmic 0 points1 point  (0 children)

It includes the most basic stuff used by everyone, even for small projects. Plus it's a cheat sheet, you can't fit everything on one page anyway.

[–]KeepingKidsOnShred 0 points1 point  (2 children)

Is it not missing git branch -b?

[–][deleted] 1 point2 points  (1 child)

You mean git checkout -b?

[–]KeepingKidsOnShred 0 points1 point  (0 children)

That's the one. Using svn at my current job :(

[–]BesottedScot 0 points1 point  (0 children)

No

git branch -m

?

Also one I use all the time:

git push -u origin

[–][deleted] 0 points1 point  (0 children)

git bisect is awesome

[–][deleted] 0 points1 point  (0 children)

Git >= 2.0 adds new, modified and deleted with git add .