Ubuntu10.04 Git安装

Ubuntu10.04 Git安装

1#安装git核心

sudo apt-get install git-core

2#安装git gui

sudo apt-get install git-gui

3#安装git doc

sudo apt-get install git-doc

4#安装git-svn

sudo apt-get install git-svn

5#安装git-cvs

sudo apt-get install git-cvs

6#安装gitweb

sudo apt-get install gitweb

7#安装git-daemon-run

sudo apt-get install git-daemon-run

#安装git-email

sudo apt-get install git-email

#安装git-arch

sudo apt-get install git-arch

8#安装gitk

sudo apt-get install git

以上安装完成,测试一下:

root@ubuntu:~# git
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
           [-p|--paginate|--no-pager] [--no-replace-objects]
           [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
           [--help] COMMAND [ARGS]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and merge with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

See 'git help COMMAND' for more information on a specific command.

git 包说明:

git包是git的核心程序,它只包括最小的依赖关系,如果只安装git包的话,那么一些git的外围扩展将无法使用。

git-all包包括了所有的集成在git上的外围扩展功能。

git-arch包是为了兼容arch仓库的。大家或许听说过linux的发行版本arch,但现在说的arch和这个发行版本似乎没有必然关系。 git-arch中的arch是gnu arch,它是一个类似于cvs、sccs、svn的版本控制系统。git-arch包用于支持从gnu arch仓库导入到git仓库。

git-cvs包用于支持从cvs仓库导入到git仓库。

git-daemon包用于支持用户使用git://形式的命令来访问git仓库。

git-email包支持使用git发送邮件。
git-gui包是一个基于Tk的git程序,也就是说是带有GUI的,可以用鼠标点击操作的git。

git-svn包用于支持从svn仓库导入到git仓库。

gitk包是一个带有Tcl/Tk GUI的可以用来浏览git仓库历史信息的桌面程序。

gitweb包则是一个成熟的基于web的用于git仓库管理的web程序



你可能感兴趣的:(linux)