Git Using

Environment:

  Windows 7 Home Premium SP1 + VirtualBox 4.3.12 + Ubuntu 14.04 LTS Server i386

 

Windows 从 http://git-scm.com 下载安装 1.9.4 版本的exe,

安装的时候我是一路默认的:Use Git Bash only / Check out Windows-style, commit Unix-style line endings

 

Ubuntu下 sudo apt-get install git; 安装完后 git --version 出来是 1.9.1版本的

 

两个环境下都

git config --global user.name "XXX"

git config --global user.email "xxx@xxx.com"

git config --global -l 查看你设置的config

其他还可以设置默认的文本编辑器啊,比较编辑器什么的,用到了再改吧


 

Let's to see how to use it: 

1. enter the dir of your project, create the .gitignore file

2. $ git init

    $ git add .

    $ git commit -m 'my comment'

    $ git clone project project.git  // 把repository复制出来, 要建立空的repository就加上 -bare 参数

posted @ 2014-07-06 23:19  灵犀一线  阅读(168)  评论(0编辑  收藏  举报