Without the -s 'git status' returns 'Your branch is ahead of
'origin/master' by 1 commit.

root@ip-xxx-xx-x-xxx:/var/www/myprojecgt# git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)


On Thu, Nov 14, 2013 at 9:30 PM, Dave Kennedy <davek1...@gmail.com> wrote:

> No the 'deleted' file, application.log, is still in the repo and the
> other commits I made are not showing up in the repo.
> I can't understand where the committed  files went?
>
> On Thursday, November 14, 2013 8:28:22 PM UTC-8, Peter J Weisberg wrote:
>>
>> On Nov 14, 2013 7:53 PM, "Dave Kennedy" <dave...@gmail.com> wrote:
>> >
>> > I have a git repository cloned  to an AWS server.
>> > But my commits are not showing up in the repository even though there
>> is no error when I commit a file.
>> > Is it OK to make commits as root or do I need to login with a git user
>> name ?
>> >
>> > root@ip-xxx-xx-x-xxx:/var/www/myproject# git config --global user.name'me'
>> > root@ip-xxx-xx-x-xxx:/var/www/myproject# git config --global
>> user.email 'm...@my.com'
>>
>> >
>> >
>> > root@ip-xxx-xx-x-xxx:/var/www/myproject# git commit -am 'test2commit'
>> > [master b506b96] test2commit
>> >  1 files changed, 0 insertions(+), 215 deletions(-)
>> >  delete mode 100644 myproject#/protected/runtime/application.log
>> >
>> > root@ip-xxx-xx-x-xxx:/var/www/myproject# git log
>> > commit b506b96c093c9ee9ec8f940ceb7964171b4827f5
>> > Author: me <m...@my.com>
>>
>> > Date:   Fri Nov 15 03:09:52 2013 +0000
>> >     test2commit
>> >
>> > root@ip-1xxx-xx-x-xxx:/var/www/myproject# git status -s
>> > root@ip-xxx-xx-x-xxx:/var/www/myproject#
>>
>> I must be missing something.  You made a commit, then you ran "git log"
>> and it showed you that your commit was made.  Everything's fine, right?
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/1DG_7n_YOWA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to