From: Arup Rakshit <aruprakshit@rocketmail.com>
To: git@vger.kernel.org
Subject: commit all the untracked files prior adding them to stage using "git add"
Date: Sun, 18 May 2014 00:58:50 +0630 [thread overview]
Message-ID: <1878681.dTqGrk8buZ@linux-wzza.site> (raw)
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
next reply other threads:[~2014-05-17 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-17 18:28 Arup Rakshit [this message]
2014-05-18 4:17 ` commit all the untracked files prior adding them to stage using "git add" Tanay Abhra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1878681.dTqGrk8buZ@linux-wzza.site \
--to=aruprakshit@rocketmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).