git学习记录
It has been 1221 days since the last update, the content of the article may be outdated.
git learn:
显示当前的Git配置
$ git config --list
编辑Git配置文件
$ git config -e [--global]
设置提交代码时的用户信息
$ git config [--global] user.name "[name]"
$ git config [--global] user.email "[email address]"
增加/删除文件
查看分支:git branch
创建分支:git branch name
切换分支:git checkout name
创建+切换分支:git checkout –b name
合并某分支到当前分支:git merge name
删除分支:git branch –d name
上传到远程库:git remote add origin https://github.com/123leehom/xulihong-rep.git
git push -u origin master(fork)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 游城二十代!
评论
Powered By Valine
v1.5.1
v1.5.1