git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git commit -a -m is not working
@ 2015-09-26 18:51 Alex Radulescu
  2015-09-26 18:54 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Radulescu @ 2015-09-26 18:51 UTC (permalink / raw)
  To: git

Hi,

This command is not working. Any advice?

Alex:testGit Alex$ git commit -a -m 'made a change'

On branch v1.0

Untracked files:

new_branch.txt

nothing added to commit but untracked files present

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

* Re: git commit -a -m is not working
  2015-09-26 18:51 git commit -a -m is not working Alex Radulescu
@ 2015-09-26 18:54 ` brian m. carlson
  2015-09-28 17:11   ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: brian m. carlson @ 2015-09-26 18:54 UTC (permalink / raw)
  To: Alex Radulescu; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

On Sat, Sep 26, 2015 at 09:51:12PM +0300, Alex Radulescu wrote:
> Hi,
> 
> This command is not working. Any advice?
> 
> Alex:testGit Alex$ git commit -a -m 'made a change'
> 
> On branch v1.0
> 
> Untracked files:
> 
> new_branch.txt
> 
> nothing added to commit but untracked files present

git commit -a does not add untracked files.  Such files might be build
by-products or such and you haven't told Git to track them, so it
doesn't.

From git-commit(1):
  -a, --all
      Tell the command to automatically stage files that have been
      modified and deleted, but new files you have not told Git about
      are not affected.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: git commit -a -m is not working
  2015-09-26 18:54 ` brian m. carlson
@ 2015-09-28 17:11   ` Jonathan Nieder
  2015-09-28 23:34     ` Alex Radulescu
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Nieder @ 2015-09-28 17:11 UTC (permalink / raw)
  To: Alex Radulescu; +Cc: brian m. carlson, git

Hi,

brian m. carlson wrote:
> On Sat, Sep 26, 2015 at 09:51:12PM +0300, Alex Radulescu wrote:

>> Alex:testGit Alex$ git commit -a -m 'made a change'
>>
>> On branch v1.0
>>
>> Untracked files:
>>
>> new_branch.txt
>>
>> nothing added to commit but untracked files present
>
> git commit -a does not add untracked files.  Such files might be build
> by-products or such and you haven't told Git to track them, so it
> doesn't.

You can run "git add -N <files>" to tell Git to start caring about
some new files (e.g., "git add -N ." to track them all).

Alternatively, you can run "git add <files>" to tell Git that the
current content of those files is ready for commit (e.g., "git add ."
before "git status" and "git commit" to commit everything).

More details are at http://jk.gs/gittutorial.html#_making_changes
(also available by running "git help tutorial").

Thanks and hope that helps,
Jonathan

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

* Re: git commit -a -m is not working
  2015-09-28 17:11   ` Jonathan Nieder
@ 2015-09-28 23:34     ` Alex Radulescu
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Radulescu @ 2015-09-28 23:34 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: brian m. carlson, git

Hi,

Thank you for your quick and precise support.

Can you share with me some best practices in deploying a web project?
I wave one remote repository, many local repositories (each/developer)
and a shared hosting server. What should I do to push quickly all
changes to my shared server?

Alex

2015-09-28 20:11 GMT+03:00 Jonathan Nieder <jrnieder@gmail.com>:
> Hi,
>
> brian m. carlson wrote:
>> On Sat, Sep 26, 2015 at 09:51:12PM +0300, Alex Radulescu wrote:
>
>>> Alex:testGit Alex$ git commit -a -m 'made a change'
>>>
>>> On branch v1.0
>>>
>>> Untracked files:
>>>
>>> new_branch.txt
>>>
>>> nothing added to commit but untracked files present
>>
>> git commit -a does not add untracked files.  Such files might be build
>> by-products or such and you haven't told Git to track them, so it
>> doesn't.
>
> You can run "git add -N <files>" to tell Git to start caring about
> some new files (e.g., "git add -N ." to track them all).
>
> Alternatively, you can run "git add <files>" to tell Git that the
> current content of those files is ready for commit (e.g., "git add ."
> before "git status" and "git commit" to commit everything).
>
> More details are at http://jk.gs/gittutorial.html#_making_changes
> (also available by running "git help tutorial").
>
> Thanks and hope that helps,
> Jonathan

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

end of thread, other threads:[~2015-09-28 23:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-26 18:51 git commit -a -m is not working Alex Radulescu
2015-09-26 18:54 ` brian m. carlson
2015-09-28 17:11   ` Jonathan Nieder
2015-09-28 23:34     ` Alex Radulescu

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