Created
January 28, 2009 10:31
-
-
Save lstoll/53891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ON DREAMHOST | |
lstoll@linc ~$ ssh barker.dreamhost.com | |
Linux barker 2.6.24.6-p4-modules-peon-grsec #1 SMP Thu May 15 22:08:43 PDT 2008 x86_64 | |
Last login: Wed Jan 28 02:08:59 2009 from cpe-121-212-227-234.static.nsw.bigpond.net.au | |
# create the dir for the repos | |
[barker]$ mkdir git | |
# create temp dir | |
[barker]$ mkdir tmp | |
[barker]$ cd tmp | |
# create an authors file, to link your svn username to your git details. | |
# replace lstoll with the svn username, and the second part with your details | |
[barker]$ echo "lstoll = Lincoln Stoll <lstoll@lstoll.net>" > ~/git-svn-authors | |
# clone the repo. note that this needs to point to the root of the rep, not trunk. | |
# will also need to add username and password/whatever is needed for your SVN urls. | |
[barker]$ git svn clone --stdlayout --authors-file=$HOME/git-svn-authors http://wordpress-s3.googlecode.com/svn wordpress-s3 | |
Initialized empty Git repository in /mnt/local/home/lstoll/tmp/wordpress-s3/.git/ | |
r1 = cb3540cb1dee1edbe3906336651099cb14b576e9 (trunk) | |
# WAIT>>>> | |
r84 = 70d095729371c9aa6cd3dc2b971d21f17ee0457f (trunk) | |
Checking out files: 100% (41/41), done. | |
Checked out HEAD: | |
http://wordpress-s3.googlecode.com/svn/trunk r84 | |
# create a bare version of the repo in the git dir | |
[barker]$ git clone --bare wordpress-s3 ~/git/wordpress-s3.git | |
Initialized empty Git repository in /mnt/local/home/lstoll/git/wordpress-s3.git/ | |
# cd to it | |
[barker]$ cd ~/git/wordpress-s3.git/ | |
# set it up to behave properly | |
[barker]$ git config core.sharedrepository 1 | |
[barker]$ git config receive.denyNonFastforwards true | |
## ON YOUR MACHINE | |
# you can just clone it.. and work as normal. In the URL, set your dreamhost username and host e.g: | |
lstoll@linc ~/tmp$ git clone ssh://lstoll@barker.dreamhost.com/~/git/wordpress-s3.git | |
Initialized empty Git repository in /Users/lstoll/tmp/wordpress-s3/.git/ | |
remote: Counting objects: 497, done. | |
remote: Compressing objects: 100% (416/416), done. | |
remote: Total 497 (delta 225), reused 0 (delta 0) | |
Receiving objects: 100% (497/497), 149.49 KiB | 57 KiB/s, done. | |
Resolving deltas: 100% (225/225), done. | |
lstoll@linc ~/tmp$ cd wordpress-s3/ | |
lstoll@linc ~/tmp/wordpress-s3 <master>$ touch EDITED | |
lstoll@linc ~/tmp/wordpress-s3 <master⚡>$ git add EDITED | |
lstoll@linc ~/tmp/wordpress-s3 <master⚡>$ git commit -m "Edited" EDITED | |
[master]: created 9327fdf: "Edited" | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 EDITED | |
lstoll@linc ~/tmp/wordpress-s3 <master↑>$ git push | |
Counting objects: 4, done. | |
Compressing objects: 100% (2/2), done. | |
Writing objects: 100% (3/3), 269 bytes, done. | |
Total 3 (delta 0), reused 0 (delta 0) | |
To ssh://lstoll@barker.dreamhost.com/~/git/wordpress-s3.git | |
70d0957..9327fdf master -> master | |
lstoll@linc ~/tmp/wordpress-s3 <master>$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment