On Jan 7, 7:38 am, elioncho <[email protected]> wrote:
> Hello,
>
> I am about to begin working with git on github. The project I am
> currently involved in maintains a public repo but new changes want to
> be made and maintain on a private one which is already created. What
> are the steps that I must undertake to pull the files from the public
> repo to the private one and start pushing to the latter one. The idea
> is to keep working on the private one and update it on a constant
> basis to whatever changes are made on the public one. I am confused on
> this one, can anyone give me some guidelines?
If I understand you correctly, you want to build a tracking branch
of the remote branch, and have that branch rebase on pull.
Let's say you wanted to maintain a private branch of git (from
github):
git clone git://github.com/git/git.git
Now, you'll be sitting on a master branch and free to commit as much
as you want. The only thing you'd want to do that's different is
configure it to rebase for you on pull:
# configure the master branch to rebase.
git config branch.master.rebase = true
...and just in case you want to work on other branches, you can
avoid having to do the same command for each by doing the following:
# configure any branches you set up to track
git config branch.autosetupmerge always
# configure that tracking to use rebase instead of merge
git config branch.autosetuprebase always
What this does:
This makes it so that you can code and commit as much as you want,
but when you do a "git pull" it will rewind all of your changes, bring
in the new code, and place your changes at the end of what the
upstream has.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---