Re: [git-users] After git -am commit changed files are not in repo

2013-11-15 Thread Dave Kennedy
Solved
I needed to push my changes to the remote repo! 
git push

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


Re: [git-users] After git -am commit changed files are not in repo

2013-11-14 Thread Dave Kennedy
I ran the following commands but still get the 'Your branch is ahead…'

1. git reset --hard origin/master
2. git pull
Already up-to-date.

3. git status
# On branch master
# Changed but not updated:
#   (use "git add/rm ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working 
directory)
#
# deleted:myproject/protected/runtime/application.log
#

4. git commit -am 'message'

5. git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

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


Re: [git-users] After git -am commit changed files are not in repo

2013-11-14 Thread Dave Kennedy
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  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"  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 
>>
>> > Date:   Fri Nov 15 03:09:52 2013 +
>> > 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.


Re: [git-users] After git -am commit changed files are not in repo

2013-11-14 Thread Dave Kennedy
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" > 
> 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 >
> > Date:   Fri Nov 15 03:09:52 2013 +
> > 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 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.


Re: [git-users] After git -am commit changed files are not in repo

2013-11-14 Thread PJ Weisberg
On Nov 14, 2013 7:53 PM, "Dave Kennedy"  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 
> Date:   Fri Nov 15 03:09:52 2013 +
> 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 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.