首页 > 其他 > 详细

6月10日 GIT基本应用

时间:2015-06-10 19:22:24      阅读:91      评论:0      收藏:0      [点我收藏+]

注册:
1、git config --global user.name
2、git config --global user.email
3、ssh-keygen -t rsa-C "邮箱"


4、Git验证key

1.设置git的user name和email:
git config --global user.name "wangxinchao"
git config --global user.email "wangxinchao@cnetax.com"

2.生存密钥:
ssh-keygen -t rsa -C “wangxinchao@cnetax.com”
按3个回车,密码为空


解决冲突:
1、提交
2、打开文件夹
3、Bash-->git remote update-->git pull orgion developv1.0
4、如果有冲突,显示(!merging)
右键TortoiseGit-->resolve

创建分支:
git checkout -b 分支名
删除新建的分支:
git branch -b 分支名

拉取:
git pull origin developv1.0
更新:
git push origin developv1.0
git pull

http://www.bootcss.com/p/git-guide/

6月10日 GIT基本应用

原文:http://www.cnblogs.com/tzq9308/p/4566999.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!