第一次上传代码到github (Linux)
来源:互联网 发布:淘宝有办假行驶证的吗 编辑:程序博客网 时间:2024/05/23 02:00
1 初始化
执行git init
2 克隆
找到仓库地址,在github的具体项目上有
执行 git clone <地址>
并且把需要上传的文件拷贝过去
3 添加提交文件
git add * 即添加所有变动的
4 提交
git commit -m "描述"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@ubuntu.(none)')
git config --global user.email "user@github.com"
git config --global user.name "usrname"
5 push到远端(服务器)
git push origin master
看到出错了,403
403错误,则请编辑 .git/config文件
把红线的地方修改为
即在github前面加上 username@
( url = https://username@github.com/username/repository.git )
重新git push origin master
执行unset SSH_ASKPASS
参考http://stackoverflow.com/questions/16077971/git-produces-gtk-warning-cannot-open-display
重新git push origin master 此时输入密码就ok了
0 0
- 第一次上传代码到github (Linux)
- 第一次上传项目到gitHub
- linux下上传代码到github
- linux系统上传本地代码到github
- 上传代码到github
- 上传代码到Github
- 上传代码到github
- 上传代码到GitHub
- 上传代码到github
- 上传代码到GitHub
- 上传代码到github
- 上传代码到github
- 上传代码到gitHub
- 上传代码到GitHub
- 上传代码到github
- 上传代码到github
- 上传代码到Github
- 上传本地代码到github
- 2017年4月19日工作日记
- elasticsearch-logstash-kibana中文文档
- linux系统中安装软件
- 【IMWeb训练营作业】TodoList 初版
- Java 理论与实践: 正确使用 Volatile 变量
- 第一次上传代码到github (Linux)
- android 隐藏标题栏
- Ionic Cordova实现软键盘的监听 以及操作大全
- bzoj 4012: [HNOI2015]开店 (树链剖分+主席树)
- 关于tpshop开源商城抢购活动的一点理解
- The first blog
- 我的第一个开源项目
- 正则表达式简明笔记
- iPhone 应用里与外设装置交换数据的原理(转)