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 参数

转载于:https://www.cnblogs.com/kyky/p/3828825.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值