url: http://git-scm.com/
安裝三部曲:
./configure
make
make install
簡單應用:
Cloning and Creating a Patch
$ git clone git://github.com/git/hello-world.git
$ cd hello-world
$ (edit files)
$ git add (files)
$ git commit -m 'Explain what I changed'
$ git format-patch origin/master
Creating and Commiting
$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
自己的例子:
[root@localhost software]# git clone git://github.com/tonyg/rabbiter.git
Initialized empty Git repository in /root/software/rabbiter/.git/
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 0), reused 8 (delta 0)
Receiving objects: 100% (8/8), 8.87 KiB, done.
$ git commit -m 'Initial commit'
没有评论:
发表评论