coding云(git)远程创建版本库和上传文件
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)远程创建版本库和上传文件的更多相关文章
- Git学习之路(2)-安装GIt和创建版本库
▓▓▓▓▓▓ 大致介绍 前面一片博客介绍了Git到底是什么东西,如果有不明白的可以移步 Git学习之路(1)-Git简介 ,这篇博客主要讲解在Windows上安装Git和创建一个版本库 ▓▓▓▓▓▓ ...
- git入门 创建版本库, 版本管理 分支 标签
参考: https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 GIT最流行的分布式版本 ...
- Git学习笔记(一)创建版本库并添加文件
最近从廖雪峰老师的个人网站上学习git,做点笔记. ★★★★★ 先注册自己的username和email,否则会报如下错误: 注册:git config --global user.name &quo ...
- 一、Git的一些命令操作----创建版本库、增加文件到Git库、时光机穿梭、远程仓库
具体详细教程请链接:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 我这里只是记录 ...
- 学习笔记--Git安装 创建版本库 图文详解
一.Git下载 在Windows上安装git,一般为msysgit,官网地址:http://git-scm.com/ 我下载的是Git-1.9.2-preview20140411.exe 二.Git安 ...
- [git]入门-创建版本库
转载整理自:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013743256 ...
- Git创建版本库和添加文件
创建版本库: 首先新建一个目录,然后通过 $ git init命令把这个目录变成Git可管理的仓库,例如: 在"C:\AmyPersonal\AmyGit"路径下新建文件夹Git1 ...
- Git学习笔记一--创建版本库、添加文件、提交文件等
Git,是Linus花了两周时间用C写的一个分布式版本控制系统.牛该怎么定义? 其实,很多人都不care谁写了Git,只在乎它是免费而且好用的!So do I! 下面开始我们的学习: 1.Git安装( ...
- Git学习--创建版本库
什么是版本库呢?版本库又名仓库,英文名repository,你可以简单理解成一个目录,这个目录里面的所有文件都可以被Git管理起来,每个文件的修改.删除,Git都能跟踪,以便任何时刻都可以追踪历史,或 ...
随机推荐
- pytest文档16-用例a失败,跳过测试用例b和c并标记失败xfail
前言 当用例a失败的时候,如果用例b和用例c都是依赖于第一个用例的结果,那可以直接跳过用例b和c的测试,直接给他标记失败xfail 用到的场景,登录是第一个用例,登录之后的操作b是第二个用例,登录之后 ...
- python笔记2-冒泡排序
前言 面试的时候经常有面试官喜欢问如何进行冒泡排序?这个问题相信能难倒一批英雄好汉,本篇就详细讲解如何用python进行冒泡排序. 一.基本原理 1.概念: 冒泡排序(Bubble Sort),是一种 ...
- error: conflicting type qualifiers for 'xxxxx'
网上的非常多解释--非常难理解-- 情景描写叙述: 在代码中,写了A\B两个文件,A:是.c文件,B是.h文件和.c文件. 在A中包括了B.h文件. 在B.h文件里声明了A中定义的变量. 这样编译的情 ...
- 一个VLAN配置的实际例子
背景很简单,和一般的eth-switch通过VLAN做成路由的方式一样. 首先看一种硬件效率较高的方法: Port1~4作为access口,同时在硬件上作为用户模式,即从PC发往这些端口的数据 ...
- pandas过滤包含特定字符串的行
~df.col3.str.contains('u|z')也就是在条件前面加~号,表示not
- C语言编程规范
C语言编程规范 6 函数与过程 6.1 函数的功能与规模设计 函数应当短而精美,而且只做一件事.不要设计多用途面面俱到的函数,多功能集于一身的函数,很可能使函数的理解.测试.维护等变得困难. 6.2 ...
- 妙用HTML5的八大特性来开发移动webAPP
webAPP的实现基础就是html5+js+css3.可是webAPP还是基于浏览器的微站点开发.正是如此,我们必需要深入的了解html5的特性,这样才干方便我们在开发和设计APP的时候.更合理的採用 ...
- 第十一章 企业项目开发--消息队列activemq
注意:本章代码基于 第十章 企业项目开发--分布式缓存Redis(2) 代码的github地址:https://github.com/zhaojigang/ssmm0 消息队列是分布式系统中实现RPC ...
- permission 权限 列表 6.0 运行时【案例】
demo地址:https://github.com/baiqiantao/PermissionTest.git <uses-permission android:name="andro ...
- IE9对HTML5中一部分属性不提供支持的原因
为什么在IE9中对于HTML5标准中的离线应用程序以及CSS3中的一部分不提供支持?笔者间接了解到了这个原因. 微软日前已经发布了Internet Explorer 9(以下简称IE9)正式版.在该版 ...