如何使用Git
设置Git
在我们能用Git工作之前,我们需要做个一次性的配置。为了Git能跟踪到谁做了修改,我们需要设置你的用户名
我强烈建议你使用与注册BitBucket账号相同的用户名和电子邮箱地址。发送这些命令,相应地替换掉其中的“your_username”和“your_email@domain.com”(注意引号):
我们也会设定推送(push)的默认值为‘simple’。
git config --global user.name "your_username"
git config --global user.email your_email@domain.com
git config –global push.default simple
克隆仓库
git clone 代码仓库的网址链接.git