Git use

来源:互联网 发布:城市新闻网络交换平台 编辑:程序博客网 时间:2024/06/10 17:41

git 使用主要有两种,local与remote



Local 使用:

cd /dirgit initgit add .git statusgit commit -m 'message'
修改后:
git statusgit commit -a -m "2nd commit"

Remote 使用:这里只用Bitbucket作为repository
登陆bitbucket
 
create repositorygit remove add origin https:... ->linkgit config --local user.name "name"git config --local user.email "email"git push origin master

Clone:
git clone http://...

以上是简单的使用方法



0 0
原创粉丝点击