首页 > 其他 > 详细

git 提交代码

时间:2017-04-21 09:38:08      阅读:186      评论:0      收藏:0      [点我收藏+]

先连接到github

$ ssh -T git@github.com
Enter passphrase for key ‘/c/Users/Lucifa/.ssh/id_rsa‘:
Hi JACKY! You‘ve successfully authenticated, but GitHub does not provide shell access.

更新代码服务器代码

$ git pull
Already up-to-date.

先把新的文件test123.sh加入到暂存区

$ git add test123.sh        (如果是删除文件执行 git rm test123.sh,后面是相同的命令)

确认提交。

$ git commit -m ‘test123‘

提交到服务器

$ git push origin master

git 提交代码

原文:http://www.cnblogs.com/yangxuming/p/6741719.html

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