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. kafka分区原理图

    一个Topic的多个分区,被分布在kafka集群中的多个server上.每一个分区都有一个server为"leader";leader负责全部的读写操作,假设leader失效,那么 ...

  2. Selenium2+Python自动化-处理浏览器弹窗(转载)

    本篇转自博客:上海-小T 原文地址:http://blog.csdn.net/real_tino/article/details/59068827 我们在浏览网页时经常会碰到各种花样的弹窗,在做UI自 ...

  3. window.open("url?param="+paramvalue) 服务端 乱码问题解决

    window.open("url?param="+paramvalue)传递参数出现乱码,在客房端显示是正常的,可是到服务端就是乱码. 1. 利用一个js在客户端转码的函数,esc ...

  4. eclipse 开发web程序,启动tomcat插件服务器的时候。部署目录在那里?

    不在tomcat-home/webapps/下面, 你做一个文件上传功能看看就知道了,临时目录一般是你的工作区间workspace\.metadata\.plugins\org.eclipse.wst ...

  5. [Git] git merge之squash

    reference : https://www.cnblogs.com/ungshow/p/3515161.html 看CM源码时,发现历史记录里有很多squash,于是google了解了一下. Gi ...

  6. 【BZOJ】【4052】【CERC2013】Magical GCD

    DP/GCD 然而蒟蒻并不会做…… Orz @lct1999神犇 首先我们肯定是要枚举下端点的……嗯就枚举右端点吧…… 那么对于不同的GCD,对应的左端点最多有log(a[i])个:因为每次gcd缩小 ...

  7. 关于DLL文件和EXE文件不在同一目录下的设置【转】

    https://www.cnblogs.com/chaosimple/archive/2012/08/13/2636181.html 关于DLL文件和EXE文件不在同一目录下的设置 在开发程序结束后, ...

  8. Merge Two Sorted Lists leetcode java

    题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splici ...

  9. IOS之导航控制器

    UINavigationController是用于构建分层应用程序的主要工具,主要采用栈形式来实现视图.任何类型的视图控制器都可放入栈中.在设计导航控制器时需要指定根视图即用户看到的第一个视图.根视图 ...

  10. [置顶] hdu 4418 高斯消元解方程求期望

    题意:  一个人在一条线段来回走(遇到线段端点就转变方向),现在他从起点出发,并有一个初始方向, 每次都可以走1, 2, 3 ..... m步,都有对应着一个概率.问你他走到终点的概率 思路: 方向问 ...