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完整配置

    规划: 网站网页目录:/web/www 域名:www.test1.com 论坛网页目录:/web/bbs URL:bbs.test1.com/bbs 网站管理程序:$CATALINA_HOME/wab ...

  2. 让QT/Embedded支持国际化

    让QT/Embedded支持国际化 环境配置: Qt/Embedded ,在主机和目标板上存放路径都为:/root/qt-embedded-free- Qt/X11 3.3 (主要用到其中的lupda ...

  3. 用java解析在OpenStreetMap上下载的地图数据

    采用dom4j解析下载的xml文件,java程序如下: package gao.map.preprocess; import java.io.BufferedWriter; import java.i ...

  4. ubuntu下mongodb常用命令

    1. 启动脚本 #!/bin/bash mongod --dbpath /usr/local/mongodb/data1 chmod +x run-mongodb 2. 关闭数据库服务 官方文档说可以 ...

  5. 在Java程序中使用Hibernate

    Hibernate是一种ORM框架,ORM全称为Object-Relative Database-Mapping,在Java对象与关系数据库之间建立某种映射,以实现直接存取Java对象(一般为实体类) ...

  6. 3D屏保:魔方2.0版本

    一个三维魔方的屏保软件,可支持2级到72级的魔方.启动后魔方会自动旋转,并最终回到初始状态.有很多人问我这是怎么做到的,用的什么解魔方的算法,其实我自己根本就不会玩魔方,别人用技巧解魔方,我这程序中用 ...

  7. 原创BULLET物理的DEMO

    原创BULLET物理的DEMO 按空格和0,1,2,3,4,5,6会发射不同的刚体. 具体的使用说明: 鼠标右键按下并拖动         旋转视角WSAD                       ...

  8. asp.net中使用ueditor 1.3.6上传图片问题

    在asp.net中使用ueditor 1.3.6版本上传图片时,出现上传成功但是,图片无法正常显示的问题,解决方法如下: 只需要将imageUp.ashx中的info = up.upFile(cont ...

  9. css表格单元格中的长文本的显示问题

    自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字符常常将容器撑大,挺让人头疼,下面介绍的是CSS如何实现换行的方法 对于div,p等块级元素 正常文字的换行(亚洲文字和非亚洲文字)元素拥 ...

  10. Unity3d---> IEnumerator

    Unity3d---> IEnumerator 2013-04-18 10:24 2162人阅读 评论(0) 收藏 举报 Unity3dc# using UnityEngine; using S ...