1、创建项目不讲,注意勾选 README选项

2、本地需要首先安装 windows 的git库,https://gitforwindows.org/

3、进入www目录下,直接将coding云上的项目clone下来,cd 到该项目目录下(与.get目录同级)

4、如果需要上传新文件到 git 关联库,使用【 git add .】   和 git commit -m "注释"

5、阿里云服务器需要同步更新,登录终端进入相应根目录,使用命令git pull 即可

6、【多人开发看这里,单人可省略】本地需要同步其他合作者代码,在本地客户端使用git pull,即可下载其他人代码

7、git diff 和 git status使用情况:

一般是在本地git库文件修改了,而云端git库 没有相应 git commit -m "注释" + git push,比较的是 两个库的区别(git diff 不加参数即默认比较工作区与暂存区

8、git简单应用示例

Administrator@Win7 MINGW64 /d/code

$ git clone https://github.com/ihadron/jdbc.git  //远程克隆git项目

Cloning into 'jdbc'...

remote: Counting objects: 5, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0

Unpacking objects: 100% (5/5), done.

Administrator@Win7 MINGW64 /d/code

$ cd jdbc  //进入项目目录(.git目录同级)

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ ls -a

./  ../  .git/  .gitignore  LICENSE  README.md

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git add .  //获取当前根目录下所有文件

warning: LF will be replaced by CRLF in WebContent/index.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/login.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/login.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/password.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/regist.html.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/regist.jsp.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in WebContent/update.jsp.

The file will have its original line endings in your working directory.

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git commit -m "jdbc v1.0"  //将暂存区文件提交至本地库

[master c509c83] jdbc v1.0

19 files changed, 417 insertions(+)

create mode 100644 .classpath

create mode 100644 .project

create mode 100644 .settings/.jsdtscope

create mode 100644 .settings/org.eclipse.jdt.core.prefs

create mode 100644 .settings/org.eclipse.wst.common.component

create mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml

create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container

create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name

create mode 100644 WebContent/META-INF/MANIFEST.MF

create mode 100644 WebContent/WEB-INF/web.xml

create mode 100644 WebContent/index.html

create mode 100644 WebContent/login.html

create mode 100644 WebContent/login.jsp

create mode 100644 WebContent/password.jsp

create mode 100644 WebContent/regist.html

create mode 100644 WebContent/regist.jsp

create mode 100644 WebContent/ulist.jsp

create mode 100644 WebContent/update.jsp

create mode 100644 mydb.sql

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$ git push -u origin master  //同步本地库和远程库

Username for 'https://github.com': ihadron

Counting objects: 25, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (20/20), done.

Writing objects: 100% (25/25), 6.33 KiB | 0 bytes/s, done.

Total 25 (delta 5), reused 0 (delta 0)

remote: Resolving deltas: 100% (5/5), done.

To https://github.com/ihadron/jdbc.git

7a049ec..c509c83  master -> master

Branch master set up to track remote branch master from origin.

Administrator@Win7 MINGW64 /d/code/jdbc (master)

$

coding云(git)远程创建版本库和上传文件的更多相关文章

  1. Git学习之路(2)-安装GIt和创建版本库

    ▓▓▓▓▓▓ 大致介绍 前面一片博客介绍了Git到底是什么东西,如果有不明白的可以移步 Git学习之路(1)-Git简介 ,这篇博客主要讲解在Windows上安装Git和创建一个版本库 ▓▓▓▓▓▓ ...

  2. git入门 创建版本库, 版本管理 分支 标签

    参考: https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 GIT最流行的分布式版本 ...

  3. Git学习笔记(一)创建版本库并添加文件

    最近从廖雪峰老师的个人网站上学习git,做点笔记. ★★★★★ 先注册自己的username和email,否则会报如下错误: 注册:git config --global user.name &quo ...

  4. 一、Git的一些命令操作----创建版本库、增加文件到Git库、时光机穿梭、远程仓库

    具体详细教程请链接:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 我这里只是记录 ...

  5. 学习笔记--Git安装 创建版本库 图文详解

    一.Git下载 在Windows上安装git,一般为msysgit,官网地址:http://git-scm.com/ 我下载的是Git-1.9.2-preview20140411.exe 二.Git安 ...

  6. [git]入门-创建版本库

    转载整理自:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013743256 ...

  7. Git创建版本库和添加文件

    创建版本库: 首先新建一个目录,然后通过 $ git init命令把这个目录变成Git可管理的仓库,例如: 在"C:\AmyPersonal\AmyGit"路径下新建文件夹Git1 ...

  8. Git学习笔记一--创建版本库、添加文件、提交文件等

    Git,是Linus花了两周时间用C写的一个分布式版本控制系统.牛该怎么定义? 其实,很多人都不care谁写了Git,只在乎它是免费而且好用的!So do I! 下面开始我们的学习: 1.Git安装( ...

  9. Git学习--创建版本库

    什么是版本库呢?版本库又名仓库,英文名repository,你可以简单理解成一个目录,这个目录里面的所有文件都可以被Git管理起来,每个文件的修改.删除,Git都能跟踪,以便任何时刻都可以追踪历史,或 ...

随机推荐

  1. Tomcat集群Spring+Quartz多次执行解决方案记录

    由于在集群环境下定时器会出现并发和重复执行的问题,我再三考虑记录有5 一.把定时器模块单独拿出来放到一台tomcat或者新建一个Java工程手动启动定时器,这样定时器的任务就可以从原来的集群中抽离开来 ...

  2. [翻译] AGPhotoBrowser 好用的图片浏览器

    AGPhotoBrowser  好用的图片浏览器 https://github.com/andreagiavatto/AGPhotoBrowser A photo browser for iOS6 a ...

  3. 《Windows核心编程》第五章——作业

    #include <windows.h> #include<iostream> #include <tchar.h> using namespace std; ty ...

  4. poj 2284 That Nice Euler Circuit 解题报告

    That Nice Euler Circuit Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 1975   Accepted ...

  5. [Linux]在终端启动程序关闭终端不退出的方法

    一般情况下关闭终端时,那么在这个终端中启动的后台程序也会终止,要使终端关闭后,后台程序保持执行,使用这个指令: nohup 命令 & 如:nohup test.sh & 回车,然后提示 ...

  6. Jungle Roads_hdu_1301(prim算法)

    Jungle Roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Tot ...

  7. 手机WiFi万能钥匙查看破解的password和手机查询命令收集

    手机须要网络利用WiFi万能钥匙破解了WIFI的password.手机就能够上网了,但假设想在电脑上使用手机破解的Wifi热点上网就须要password,此时须要知道手机破解的password,WiF ...

  8. 计算两端yuv视频流中每一帧的ssim值

    方法同上一篇,仅仅不多这里在计算的时候用了opencv1的接口,出现了一些问题.最后总算攻克了. 程序: #include <stdlib.h> #include <stdio.h& ...

  9. 经典,HTML5游戏,超级玛丽

    在线演示 在线演示 本地下载 这是一款使用HTML5开发的超级玛丽,有没有点儿时的记忆?长按向上键,可以跳的更高哦.如果你也喜欢可以当成休闲游戏,如果你是开发者,不防下载下来看看是如何生成的.

  10. Spring+DBUnit+H2----项目单元测试

    http://yugouai.iteye.com/blog/1879337 今天够郁闷的,早上调好的代码,到中午调试不同了,分析不出问题,H2的JDBC报错:org.h2.jdbc.JdbcSQLEx ...