æè¿gitãç´ æµã§ãrubyforgeã«ç»é²ããæ°ããããã¸ã§ã¯ãã§ãgitãé¸æãã¦ãã¾ã£ãã
ãã¯ã¯èªåã®è¶£å³ç¨ã®Subversionãªãã¸ããªããµã¯ã©ã®ã¬ã³ã¿ã«ãµã¼ãã¼ã«ç½®ãã¦ããã®ã ãããã®ãªãã¸ããªãgitã«ç§»è¡ãããã¨ã«ããã
git â subversionã®ãã¼ã¿ç§»è¡ãæå¾ ããæ¹ã«ã¯ç³ã訳ãªãã®ã ãã©ããã¯ã¯éå»ã®ä½æ¥ãã°ãªã©ä¸åå¿ è¦ãªãããSubversionã®ãªãã¸ããªãããã«æ¶ãããã§ã¯ãªãã®ã§ããã®ä½æ¥ã¯ããªãã£ããã¨ããããgitã§æ°ãããªãã¸ããªãä½ããæ´æ°é »åº¦ã®é«ããã®ããgitã«ç§»è¡ãããã¨ã«ããã
ã§ãã決ã¾ãã®ä½æ¥ãã°ãããã¯é »åºäºé ã ãã©ããµã¯ã©ã®ã¬ã³ã¿ã«ãµã¼ãã¼ã¯æ®éã«ã·ã§ã«ã使ããã®ã§ãèªåã®ãã¼ã ãã£ã¬ã¯ããªä¸ã«ã¤ã³ã¹ãã¼ã«ãã¦PATHãéãã¦ãã¾ãã°ãæ®éã«ããã°ã©ã ã®ã¤ã³ã¹ãã¼ã«ãã§ããã
ä»ã¾ã§æ®éã«ããã°ã©ã ããã«ãï¼ã¤ã³ã¹ãã¼ã«ããçµé¨ã®ãã人ã«ã¨ã£ã¦ã¯ç¡åé¡ã ãã©ãmake
ããã¨ãã«æ示çã«gmake
ãå®è¡ããªãããããªãã¨ããç¹ãï¼ã¤ã ã注æäºé
ã
ã¨ããããã§
### sakuraãµã¼ãã¼ % wget http://kernel.org/pub/software/scm/git/git-1.5.5.1.tar.bz2 % tar -xjvf git-1.5.5.1.tar.bz2 % cd git-1.5.5.1 % ./configure --prefix=$HOME/local % gmake # gmakeã§ãªãã¨é§ç® % gmake install ### $HOME/local/bin ãPATHã«éãã®ãå¿ããã« % cd $HOME % mkdir repos.git % cd repos.git % echo "This is my git repository" > README % git add README % git commit -m "first commit" Created initial commit f37d990: first commit 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 README # èªåã®ãã·ã³ã«æ»ã£ã¦ãã $ git clone ssh://[email protected]/home/youraccount/repos.git repos Initialized empty Git repository in /home/fukuda/devel/repos/.git/ remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0) Indexing 3 objects... 100% (3/3) done $ cd repos $ cat README This is my git repository $ echo 'Second Commit!' >> README $ git add README $ git commit -m "second commit" Created commit 7e1fb2d: second commit 1 files changed, 1 insertions(+), 0 deletions(-) $ git push origin updating 'refs/heads/master' from d3568da7b6a00e8ac802da1477a07ed1194ef34c to dc04fd100fab888b0facd5cfab6b92af132fef6c Also local refs/remotes/origin/master Generating pack... Done counting 3 objects. Deltifying 3 objects... 100% (3/3) done Writing 3 objects... 100% (3/3) done Total 3 (delta 0), reused 0 (delta 0)
ãã£ããæåã
gitã¯å¥¥ãæ·±ãããããããã£ã¨åå¼·ãã¦ã¿ãã