# How to push changes from clone back to master

4 messages from 2010-01-08 to 2010-01-09. Participants: Simon C, Tomas Carnecky, Simon Chu, Junio C Hamano.
Thread: https://gitlist.dev/t/22135

## Simon C, 2010-01-08 21:28

Subject: How to push changes from clone back to master
Message-ID: <1262986087967-4275010.post@n2.nabble.com>
URL: https://gitlist.dev/e/1262986087967-4275010.post%40n2.nabble.com

```


I created master branch in git:

mkdir git_master;
cd git_master
git init
git add .
git commit

create a clone
git clone . ../git_clone1
create newfile
git add newfile
git commit .

then try to propagate changes to master
git push

it gave me some warning, and subsequent git push says everything is up to
date.
but I do not see the new file under git_master
-- 
View this message in context: http://n2.nabble.com/How-to-push-changes-from-clone-back-to-master-tp4275010p4275010.html
Sent from the git mailing list archive at Nabble.com.

```

## Tomas Carnecky, 2010-01-09 01:00

Subject: Re: How to push changes from clone back to master
Message-ID: <4B47D52A.1050608@dbservice.com>
URL: https://gitlist.dev/e/4B47D52A.1050608%40dbservice.com
In-Reply-To: <1262986087967-4275010.post@n2.nabble.com>

```
On 1/8/10 10:28 PM, Simon C wrote:
 >
 >
 > I created master branch in git:
 >
 > mkdir git_master;
 > cd git_master
 > git init
 > git add .
 > git commit
 >
 > create a clone
 > git clone . ../git_clone1
 > create newfile
 > git add newfile
 > git commit .
 >
 > then try to propagate changes to master
 > git push
 >
 > it gave me some warning, and subsequent git push says everything is up to
 > date.
 > but I do not see the new file under git_master

If you asked that question in the official IRC channel, the answer would 
be 'faq non-bare', which would cause the bot to send you a link to this 
entry in the Git FAQ:
http://git.or.cz/gitwiki/GitFaq#Whywon.27tIseechangesintheremoterepoafter.22gitpush.22.3F

tom

```

## Simon Chu, 2010-01-09 05:53

Subject: Re: How to push changes from clone back to master
Message-ID: <2394EBAE-BA99-4817-93E3-D5441D6DA46B@gmail.com>
URL: https://gitlist.dev/e/2394EBAE-BA99-4817-93E3-D5441D6DA46B%40gmail.com
In-Reply-To: <4B47D52A.1050608@dbservice.com>

```
Tomas,

How do I push code to master then, do I do got reset - hard on the  
master??

Simon

On Jan 8, 2010, at 5:00 PM, Tomas Carnecky <tom@dbservice.com> wrote:

> On 1/8/10 10:28 PM, Simon C wrote:
> >
> >
> > I created master branch in git:
> >
> > mkdir git_master;
> > cd git_master
> > git init
> > git add .
> > git commit
> >
> > create a clone
> > git clone . ../git_clone1
> > create newfile
> > git add newfile
> > git commit .
> >
> > then try to propagate changes to master
> > git push
> >
> > it gave me some warning, and subsequent git push says everything  
> is up to
> > date.
> > but I do not see the new file under git_master
>
> If you asked that question in the official IRC channel, the answer  
> would be 'faq non-bare', which would cause the bot to send you a  
> link to this entry in the Git FAQ:
> http://git.or.cz/gitwiki/GitFaq#Whywon.27tIseechangesintheremoterepoafter.22gitpush.22.3F
>
> tom
>

```

## Junio C Hamano, 2010-01-09 06:49

Subject: Re: How to push changes from clone back to master
Message-ID: <7vhbqvdb83.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhbqvdb83.fsf%40alter.siamese.dyndns.org
In-Reply-To: <2394EBAE-BA99-4817-93E3-D5441D6DA46B@gmail.com>

```
Simon Chu <simonchu.web@gmail.com> writes:

> On Jan 8, 2010, at 5:00 PM, Tomas Carnecky <tom@dbservice.com> wrote:
>
>> If you asked that question in the official IRC channel, the answer
>> would be 'faq non-bare', which would cause the bot to send you a
>> link to this entry in the Git FAQ:
>> http://git.or.cz/gitwiki/GitFaq#Whywon.27tIseechangesintheremoterepoafter.22gitpush.22.3F
>
> How do I push code to master then, do I do got reset - hard on the
> master??

(Please do not top post).

If you asked that question on the IRC, the answer would be 'faq
mothership-satellite', which would cause the bot to send you a link to
this entry in the Git FAQ:

    push is reverse of fetch. See
    http://git.or.cz/gitwiki/GitFaq#mothership-satellite

This link is recommended by the entry Tomas gave you, so I am having this
sad feeling that you wouldn't read it either...  Sigh.

```
