• 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)

    $

  • 相关阅读:
    makefile 中 $@ $^ %< 使用
    makefile中的自动化变量$@,$%,$
    linux grep命令
    wc命令
    linux下echo命令
    winscp和putty提取固件教程
    WinSCP和PuTTY在刷openwrt固件的使用教程
    OPENWRT学习笔记入门篇
    第五章 并发性:互斥和同步
    getCurrentSession()和getOpenSession()的区别
  • 原文地址:https://www.cnblogs.com/xuzhengzong/p/8745872.html
Copyright © 2020-2023  润新知