commit all the untracked files prior adding them to stage using "git add"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the currently added files in my repository :

arup@linux-wzza:~/Rails/test_app> git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       .gitignore
#       Gemfile
#       Gemfile.lock
#       README.rdoc
#       Rakefile
#       app/
#       bin/
#       config.ru
#       config/
#       db/
#       lib/
#       log/
#       public/
#       test/
#       vendor/
nothing added to commit but untracked files present (use "git add" to track)

Now I am looking for a way to add those in stage and commit also in a single 
line. So I did below :-

arup@linux-wzza:~/Rails/test_app> git commit -m "chapter 19 of Agile Web 
Development with Rails" -a
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       .gitignore
#       Gemfile
#       Gemfile.lock
#       README.rdoc
#       Rakefile
#       app/
#       bin/
#       config.ru
#       config/
#       db/
#       lib/
#       log/
#       public/
#       test/
#       vendor/
nothing added to commit but untracked files present (use "git add" to track)

It did not work. Then using `git commit -h` told me, *-a* will work, for 
*tracked files*. Is there any way to add untracked files in stage, and commit in 
a single line ? 


-- 
===============
Regards,
Arup Rakshit
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]