git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* commit all the untracked files prior adding them to stage using "git add"
@ 2014-05-17 18:28 Arup Rakshit
  2014-05-18  4:17 ` Tanay Abhra
  0 siblings, 1 reply; 2+ messages in thread
From: Arup Rakshit @ 2014-05-17 18:28 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2014-05-18  4:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-17 18:28 commit all the untracked files prior adding them to stage using "git add" Arup Rakshit
2014-05-18  4:17 ` Tanay Abhra

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).