GitHub上传代码
来源:互联网 发布:淘宝网现在卖多少钱 编辑:程序博客网 时间:2024/05/16 09:29
Mark一下长传代码的步骤:
1.在github中创建一个repository。
2.在setting中找到这个按钮,生成自己的网站。
3.publishi page
4.复制网址,在本地文件夹需要长传的地方空白处右击,Git clone。
5.就会生成.git,stylesheets,index.html,params.json文件,然后将需要上传的文件放到这里,然后替换掉index.html文件,stylesheets和params.json都可以删除掉。
6.右键,git commit。
7.在setting中找到网址就可以访问了。
Git命令上传代码:
(1)在Git Bash上输入命令:
ssh-keygen -C “username@email.com” -t rsa
注:“username@email.com”需要更换成你在Github上注册的Email地址或者是Username
(2)这样会在用户目录(C:\Users\用户名)下产生一个.ssh文件夹,里面为对应的SSH Keys,其中id_rsa.pub是Github需要的SSH公钥文件。(以.pub结尾的文件)
(3)在github网站选择“Account Settings”>>“SSH Public Keys”>>“Add another
public key”,将刚才复制的内容粘贴到key文本框内。
注:建议在Git Bash中输入“ssh -v git@github.com”测试能够正常连接github
若发现ssh命令有问题,需要在系统环境变量中 path中添加 ssh运行的目录,自己在文件中搜索 keygen
C:\Users\csl\AppData\Local\Programs\Git\usr\bin;
(4)在github中切换目录到项目目录
(5)git commit -m “信息”
(6)连接github 比如: git remote add origin https://github.com/testgit.git
如果出现: remote origin already exists。运行 git remote rm origin
(7)git add .
(8)git push origin master就能将本地的代码上传到 github中去
- github上传代码
- github上传代码
- Github上传代码
- Github 上传代码
- GitHub上传代码
- 上传代码至Github
- 上传代码到github
- 使用github上传代码
- github上传代码
- github上传代码
- GitHub上传代码教程
- github上传代码
- Github 上传代码
- github上传代码
- 上传代码到Github
- gitHub上传本地代码
- 上传代码到github
- Github上传代码
- Android开发之多线程编程Thread和Runnable使用
- HDU 1166 | 敌兵布阵 —— 树状数组
- VC----Windows多线程
- (四十三)、线程的同步和线程池
- UVALive 6811 Irrigation Lines (二分图最小点覆盖--匈牙利算法)
- GitHub上传代码
- iOS第一次加载键盘速度慢
- 编码及常见的编码方式
- 关于log4j2在windows和ubuntu上的部分使用经验
- MySQL数据库的增删改查
- VC----小结
- 动态规划----硬币问题
- C语言atof()函数:将字符串转换为double(双精度浮点数)
- 几种卡通渲染方法的解析