git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to push changes from clone back to master
@ 2010-01-08 21:28 Simon C
  2010-01-09  1:00 ` Tomas Carnecky
  0 siblings, 1 reply; 4+ messages in thread
From: Simon C @ 2010-01-08 21:28 UTC (permalink / raw)
  To: git



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.

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

* Re: How to push changes from clone back to master
  2010-01-08 21:28 How to push changes from clone back to master Simon C
@ 2010-01-09  1:00 ` Tomas Carnecky
  2010-01-09  5:53   ` Simon Chu
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Carnecky @ 2010-01-09  1:00 UTC (permalink / raw)
  To: Simon C; +Cc: git

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

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

* Re: How to push changes from clone back to master
  2010-01-09  1:00 ` Tomas Carnecky
@ 2010-01-09  5:53   ` Simon Chu
  2010-01-09  6:49     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Chu @ 2010-01-09  5:53 UTC (permalink / raw)
  To: Tomas Carnecky; +Cc: git@vger.kernel.org

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
>

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

* Re: How to push changes from clone back to master
  2010-01-09  5:53   ` Simon Chu
@ 2010-01-09  6:49     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2010-01-09  6:49 UTC (permalink / raw)
  To: Simon Chu; +Cc: Tomas Carnecky, git@vger.kernel.org

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.

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

end of thread, other threads:[~2010-01-09  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 21:28 How to push changes from clone back to master Simon C
2010-01-09  1:00 ` Tomas Carnecky
2010-01-09  5:53   ` Simon Chu
2010-01-09  6:49     ` Junio C Hamano

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