首页 > 其他 > 详细

new bird in github

时间:2016-12-17 01:32:05      阅读:180      评论:0      收藏:0      [点我收藏+]

首次使用先要建立本地github信息:

git config - -global user.name  newbird

git config - -global user.email   newbird@mail.com

ssh-keygen -t rsa -C newbird@mail.com

//该命令将会在~/.ssh/下生成公钥id_rsa.pub

//打开该文件,将公钥复制到github用户主页中的“SSH and GPG keys”的New SSH key中

//打开主页中所需要要同步的repostory,选择“clone and download”选择“clone with ssh”

//将生成的ssh key复制,并在shell中执行git "ssh key you copyed",这时便将repository同步到本地了

修改本地repository并push到主页:

git add filename  //filename可省

git commit  -m  “ xxxxxx”    branchname    -a   //branchname添加到branch分支, 可省             

git  push origin master    //origin master可省

new bird in github

原文:http://www.cnblogs.com/fariver/p/6188611.html

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