I'm finally trying to get current with the switch to git, following this wiki page:
http://wiki.postgresql.org/wiki/Committing_with_Git Specifically, I am trying to do: ------------ Dependent Clone per Branch, Pushing and Pulling From a Local Repository -plus- Clone Locally, Repoint Origin ------------ In order to set this up, I used the attached recipe. Does that look reasonable and correct? I am hoping that from this point forward I can treat each of those checked out branches exactly (more-or-less) as I did under cvs -- true? E.g. #make some changes git commit -a git push Thanks, Joe -- Joe Conway credativ LLC: http://www.credativ.us Linux, PostgreSQL, and general Open Source Training, Service, Consulting, & 24x7 Support
mkdir /opt/src/pgsql-git cd /opt/src/pgsql-git git clone --bare --mirror ssh://[email protected]/postgresql.git cd /opt/src/pgsql-git git clone postgresql master cd master git checkout master git config branch.master.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/master:refs/remotes/origin/master' cd /opt/src/pgsql-git git clone postgresql REL9_0_STABLE cd REL9_0_STABLE git checkout REL9_0_STABLE git config branch.REL9_0_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL9_0_STABLE:refs/remotes/origin/REL9_0_STABLE' git branch -D master cd /opt/src/pgsql-git git clone postgresql REL8_4_STABLE cd REL8_4_STABLE git checkout REL8_4_STABLE git config branch.REL8_4_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL8_4_STABLE:refs/remotes/origin/REL8_4_STABLE' git branch -D master cd /opt/src/pgsql-git git clone postgresql REL8_3_STABLE cd REL8_3_STABLE git checkout REL8_3_STABLE git config branch.REL8_3_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL8_3_STABLE:refs/remotes/origin/REL8_3_STABLE' git branch -D master cd /opt/src/pgsql-git git clone postgresql REL8_2_STABLE cd REL8_2_STABLE git checkout REL8_2_STABLE git config branch.REL8_2_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL8_2_STABLE:refs/remotes/origin/REL8_2_STABLE' git branch -D master cd /opt/src/pgsql-git git clone postgresql REL8_1_STABLE cd REL8_1_STABLE git checkout REL8_1_STABLE git config branch.REL8_1_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL8_1_STABLE:refs/remotes/origin/REL8_1_STABLE' git branch -D master cd /opt/src/pgsql-git git clone postgresql REL8_0_STABLE cd REL8_0_STABLE git checkout REL8_0_STABLE git config branch.REL8_0_STABLE.rebase true git config user.name "Joe Conway" git config user.email [email protected] git config remote.origin.fetch '+refs/heads/REL8_0_STABLE:refs/remotes/origin/REL8_0_STABLE' git branch -D master cd /opt/src/pgsql-git/master git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL9_0_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL8_4_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL8_3_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL8_2_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL8_1_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin cd /opt/src/pgsql-git/REL8_0_STABLE git remote set-url origin ssh://[email protected]/postgresql.git git remote update git remote prune origin
signature.asc
Description: OpenPGP digital signature
