github上传本地仓库
前提是你已经有了自己的github账号,并且已经关联了本地和远程的仓库,设置好了ssh密钥。自行百度解决。
上传的主要命令:
git init git add . git commit -m "备注的信息" //关联到远程的仓库 git remote add origin https://github.com/Alanrah/WebGL-.git //上传到远程仓库 git push origin master
这是我的上传大致的过程,有兴趣可以看看。
// MyHtmlCss是我要上传的文件的目录,目录下是要上传的文件
Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ git init
Initialized existing Git repository in D:/FronteEnd/FrontEndSrc/MyHtmlCss/.git/ Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ git add .(注意,add后面是空格和点号) Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ git remote add origin https://github.com/Alanrah/MyHtmlCSS.git Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ git commit -m "my first commit myhtmlcss"(引号内为本次上传的信息)
[master (root-commit) 2dd1125] my first commit myhtmlcss
60 files changed, 4618 insertions(+)
create mode 100644 "CSS3-\345\270\246\350\203\214\346\231\257\345\210\207\346\215\242\347\231\273\351\231\206\346\263\250\345\206\214\350\241\250\345\215\225/css/style.css"
…… create mode 100644 "\346\226\207\346\234\254\345\212\240\345\257\206.html"
create mode 100644 "\347\273\277\350\217\212.html"
create mode 100644 "\351\227\252\347\203\201\350\255\246\347\244\272\347\201\257.htm" Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ git push origin master
Counting objects: 82, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (82/82), 621.91 KiB | 0 bytes/s, done.
Total 82 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), done.
To https://github.com/Alanrah/MyHtmlCSS.git
* [new branch] master -> master Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/FrontEndSrc/MyHtmlCss (master)
$ //ok,到这里该仓库上传完毕 //现在以同样的方法上传仓库: Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习
$ git init
Initialized empty Git repository in D:/FronteEnd/WebGL/webGL中文网站基础教程学习/.git/ Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习 (master)
$ git add .
warning: LF will be replaced by CRLF in js/d3.js.
The file will have its original line endings in your working directory.
The file will have its original line endings in your working directory.
……
warning: LF will be replaced by CRLF in src/lesson15/index.html.
The file will have its original line endings in your working directory. Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习 (master)
$ git commit -m "WebGL中文教程代码"
[master (root-commit) 858abfa] WebGL中文教程代码
69 files changed, 140515 insertions(+)
create mode 100644 js/d3.js
create mode 100644 js/three.min.js
……
create mode 100644 src/nehe.gif
create mode 100644 "three.js\347\232\204\350\207\252\345\255\246\345\237\272\347\241\200.doc" Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习 (master)
$ git remote add origin https://github.com/Alanrah/WebGL-.git Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习 (master)
$ git push origin master
Counting objects: 74, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (71/71), done.
Writing objects: 100% (74/74), 5.31 MiB | 145.00 KiB/s, done.
Total 74 (delta 13), reused 0 (delta 0)
remote: Resolving deltas: 100% (13/13), done.
To https://github.com/Alanrah/WebGL-.git
* [new branch] master -> master Catherine@DESKTOP-GP6IPQS MINGW64 /d/FronteEnd/WebGL/webGL中文网站基础教程学习 (master)
$
github上传本地仓库的更多相关文章
- github上传本地项目
github上传本地项目,分为两个部分: 1.如果建立了ssh key的,直接看第二部分的上传部分就行了 2.如果没有建立ssh key的,就从头开始看吧 ——————————————————我是快乐 ...
- 通过git shell 在Github上传本地项目
首先现在github上新建一个库,再进行如下操作,过程不赘述 1.打开git shell 2.cd到项目位置 // cd archives-vue 3.git init 4.Get add ...
- Git上传本地仓库项目到gitee远程仓库(命令篇)
前言:最近整理了一下自己之前的自学代码,包括一些练习的项目.发现有些杂乱,故想使用Gitte(码云)管理.加上不少公司使用Git,所以写了这篇文章记录. 如果我们本地有了项目,那么如何上传到码云上呢? ...
- 使用Git GUI工具 上传本地仓库到 gitee码云仓库
前言: 网上关于git的命令操作与使用很多教程和博客,在使用git工具时我发现有一个 git Gui 可视化工具,我觉得十分的亲切,由于我之前一直是使用svn作为版本控制管理工具,都是可视化操作,使用 ...
- GIT的使用(Gitlab上传本地仓库代码,Webstorm修改更新)
准备:GIT的安装,Gitlab账户登陆,webstorm的安装 1.首先,你得先会在Gitlab中创建一个团体,在团体中创建一个项目,先建组,再建项目,网上哪里都有教程,随便找了个网址: https ...
- Git上传本地仓库文件到Gitee(Github同理)
前言:本来想把最近的代码更新到Github上,但是校园网打不开,于是决定暂时先更新到Gitee中,Github中的操作也同理. 1. 创建云仓库: 就是在Gitee/Github上创建仓库,这里不演示 ...
- GitHub上传本地文件
基本条件:安装GitHub,安装成功之后:(windows系统) 1.安装完成后,还需要一步设置,在命令行输入: $ git config --global user.name "Your ...
- 使用Git Bash向GitHub上传本地项目
第一步:下载Git Bash(https://gitforwindows.org/),安装的过程是一路下一步,就不细说啦: 第二步:打开Git Bash,如下图显示: 第三步:现在让我们先放一放Git ...
- github上传本地项目代码
进入github首页,点击新项目new repository,如下图所示: 然后进入如下页面,填写信息: 最后点击Create repository,生成如下页面: 红色圈圈画的步骤,先点击Clone ...
随机推荐
- 创建文件夹c++
linux #include <sys/types.h> #include <sys/stat.h> string filepath; mkdir(filepath.c_str ...
- 【letcode】5-LongestPalindromicSubstring
回文串 回文串(palindromic string)是指这个字符串无论从左读还是从右读,所读的顺序是一样的:简而言之,回文串是左右对称的.一般求解一个字符串的最长回文子串问题. problem:Lo ...
- PYTHON 定时器简单封装,基于SCHED
python fresher,轻拍. 在写后台服务时经常会遇到很多定时器的场景,threading.Timer类每实例化一个定时器会有一个新线程去执行,在客户端使用倒是没有问题,如果是服务器端定时器数 ...
- 20155219 2016-2017-2《Java程序设计》课程总结
20155219 2016-2017-2<Java程序设计>课程总结 (按顺序)每周作业链接汇总 预备作业1:我期望的师生关系 预备作业2:做中学深入探讨 预备作业3:虚拟机的安装与学习 ...
- MySql查询出来的值为 boolean类型的值
解决方案: status_flag * 1 as status_flag 乘以1之后就不会是boolean类型的值了
- java-冒泡排序、选择排序、二分查找
1.冒泡排序 public void bubbleSort(int[] arr) { for (int i = 0; i < arr.length - 1; i++) { //外循环只需要比较a ...
- springboot配置文件启动顺序
[1]项目内部配置文件 spring boot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件 1.–f ...
- 在java中(==)的用法
- 【spring源码分析】BeanDefinitionRegistryPostProcessor解析
一.自定义BeanDefinitionRegistryPostProcessor BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProces ...
- centos7上部署vnc服务器并实现远程桌面
centos7上进行一下操作 [root@localhost ~]# yum install tigervnc-server -y#安装vnc服务器 Loaded plugins: fastestmi ...