线下代码同步线上

2019-12-20  本文已影响0人  文朝明
E:\trip>git status
E:\trip>git add .
E:\trip>git commit -m "project initialized"
E:\trip>git push
//注意:m后面的空格和双引号,win系统必须使用双引号,不然会报错:error: pathspec 'XXX' did not match any file(s) known to git
Microsoft Windows [版本 10.0.17134.376]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>E:

E:\>cd trip

E:\trip>git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   README.md

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .babelrc
        .editorconfig
        .eslintignore
        .eslintrc.js
        .gitignore
        .postcssrc.js
        build/
        config/
        index.html
        package-lock.json
        package.json
        src/
        static/
        test/

no changes added to commit (use "git add" and/or "git commit -a")

E:\trip>git add .
E:\trip>git commit -m "project initialized"
[master 08ea728] project initialized
 36 files changed, 13875 insertions(+), 37 deletions(-)
 create mode 100644 .babelrc
 create mode 100644 .editorconfig
 create mode 100644 .eslintignore
 create mode 100644 .eslintrc.js
 create mode 100644 .gitignore
 create mode 100644 .postcssrc.js
 rewrite README.md (98%)
 create mode 100644 build/build.js
 create mode 100644 build/check-versions.js
 create mode 100644 build/logo.png
 create mode 100644 build/utils.js
 create mode 100644 build/vue-loader.conf.js
 create mode 100644 build/webpack.base.conf.js
 create mode 100644 build/webpack.dev.conf.js
 create mode 100644 build/webpack.prod.conf.js
 create mode 100644 config/dev.env.js
 create mode 100644 config/index.js
 create mode 100644 config/prod.env.js
 create mode 100644 config/test.env.js
 create mode 100644 index.html
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 src/App.vue
 create mode 100644 src/assets/logo.png
 create mode 100644 src/components/HelloWorld.vue
 create mode 100644 src/main.js
 create mode 100644 src/router/index.js
 create mode 100644 static/.gitkeep
 create mode 100644 test/e2e/custom-assertions/elementCount.js
 create mode 100644 test/e2e/nightwatch.conf.js
 create mode 100644 test/e2e/runner.js
 create mode 100644 test/e2e/specs/test.js
 create mode 100644 test/unit/.eslintrc
 create mode 100644 test/unit/jest.conf.js
 create mode 100644 test/unit/setup.js
 create mode 100644 test/unit/specs/HelloWorld.spec.js

E:\trip>git push
Enumerating objects: 52, done.
Counting objects: 100% (52/52), done.
Delta compression using up to 8 threads
Compressing objects: 100% (41/41), done.
Writing objects: 100% (50/50), 113.72 KiB | 6.32 MiB/s, done.
Total 50 (delta 0), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-3.8]
To gitee.com:xxx/xx.git
   f476e3e..08ea728  master -> master

E:\trip>
上一篇下一篇

猜你喜欢

热点阅读