see Junios post here:

http://kerneltrap.org/mailarchive/git/2007/3/19/241732

He describes how you can setup push to push to a branch other than
master, and then on the remote machine (either manually or using post-
receive hook) git merge from the push branch into master. Should be
just the ticket.

--
Paul

On Aug 22, 12:17 pm, James <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> I'm new to git, and have been getting my hands 'dirty' initializing
> and cloning repos, working, branching and merging. I have an issue
> with git push, I'm sure I'm missing something, so I'd appreciate all
> your help. To scenario is as follows.
>
> 1) On my local machine I initialize a new git repo. I add a basic text
> file and commit.
>
> >mkdir myorigin
> >cd myorigin
> >git init
> >echo "added in origin" > origfile
> >git add .
> >git commit -m "initial origin commit"
>
> 2) I clone this repo onto the same local machine, without using SSH or
> anything else. I clone it under the name 'test'
>
> > git clone --local file:///Users/James/Desktop/myorigin test
>
> As expected, I see the origfile inside the cloned 'test'.
>
> 3) I add a new file to the working folder 'test', I add and commit the
> changes.
>
> > echo "new file added in test" > newfile
> > git add .
> > git commit -m "added new file in test"
>
> 4) Now when I push this updated working folder onto the origin, the
> new file is not added!
>
> > git push
>
> When I switch to origin and run git-status, I see my new file with a
> 'deleted' status. Please anyone can tell me what's happening?
>
> Thanks in advance,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to