git -1

作者: 秣崖 | 来源:发表于2017-01-14 14:42 被阅读0次

GIT BASH

用户信息配置

两种方法

1,

于‘用户/用户名/.gitconfig’ 配置

2,

git config --global user.name 'first last';

git config --global user.email 'com';

关于一些基本操作

在github上创建好账号

ssh-keygen -t rsa -C '@.com'  

按照提示进行生成ssh key

再在github上添加ssh key

ssh -T git@github.com 进行认证

接着你可以在网页创建仓库

通过 

git clone git@github.com:1992009352/仓库名.git 

在当前文件路径下克隆仓库文件,然后可以cd入仓库内

生成和修改文件等操作

在完成修改后,可以通过

git status 命令进行状态查看所有修改的文件

再通过git add 文件名的方式暂存文件

通过git commit -m '请求' 进行提交

最后通过 git push 进行更新

至此第一章结束

一些扩展

git commit -am//可以同时完成add 和 commit 操作      


相关文章

网友评论

      本文标题:git -1

      本文链接:https://www.haomeiwen.com/subject/hgrebttx.html