- 博客(0)
- 资源 (1)
空空如也
git常用指令
git Git常用命令总结
ssh ssh-keygen -t rsa -C “您的邮箱地址”
生成ssh公钥(先安装)
git init
在本地新建一个repo,进入一个项目目录,执行git init,会初始化一个repo,并在当前文件夹下创建一个.git文件夹.
git默认拒绝了push操作,需要进行设置,修改.git/config添加如下代码:
[receive]
denyCurrentBranch = ignore
”git init –-bare”方法创建一个所谓的裸仓库,之所以叫裸仓库是因为这个仓库只保存git历史提交的版本信息,而不允许用户在上面进行各种git操作
git config --global
$ git config --global user.name author #将用户名设为author
$ git config --global user.email author@corpmail.com #将用户邮箱设为author@corpmail.com
2018-02-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人