git 提交

chenmingleitekiiMac:~ maxu$ gitclone git@github.com:sencloudx/MOShop.git
-bash: gitclone: command not found
chenmingleitekiiMac:~ maxu$ git clone git@github.com:sencloudx/MOShop.git
Cloning into 'MOShop'...
remote: Counting objects: 18342, done.
remote: Compressing objects: 100% (219/219), done.
remote: Total 18342 (delta 114), reused 0 (delta 0)
Receiving objects: 100% (18342/18342), 104.17 MiB | 57.00 KiB/s, done.
Resolving deltas: 100% (12212/12212), done.
Checking connectivity... done
Checking out files: 100% (2856/2856), done.
chenmingleitekiiMac:~ maxu$ 
fatal: Not a git repository (or any of the parent directories): .git
chenmingleitekiiMac:~ maxu$ git pull
fatal: Not a git repository (or any of the parent directories): .git
chenmingleitekiiMac:~ maxu$ git push
fatal: Not a git repository (or any of the parent directories): .git
chenmingleitekiiMac:~ maxu$ git status
fatal: Not a git repository (or any of the parent directories): .git
chenmingleitekiiMac:~ maxu$ ls
Desktop          Documents     Downloads     Library          MOShop          Movies          Music          Pictures     Public
chenmingleitekiiMac:~ maxu$ cd MOShop
chenmingleitekiiMac:MOShop maxu$ git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#     modified:   WebContent/WEB-INF/language/admin/message_zh_CN.properties
#     modified:   WebContent/WEB-INF/template/admin/order/list.ftl
#     modified:   WebContent/WEB-INF/template/admin/product/list.ftl
#     modified:   WebContent/WEB-INF/template/admin/role/add.ftl
#     modified:   WebContent/WEB-INF/template/admin/role/edit.ftl
#     modified:   WebContent/resources/admin/js/list.js
#     modified:   src/com/sencloud/controller/admin/ProductController.java
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#     src/com/sencloud/report/form/ProductStockOutReportForm.java
no changes added to commit (use "git add" and/or "git commit -a")
chenmingleitekiiMac:MOShop maxu$ git add .
chenmingleitekiiMac:MOShop maxu$ git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#     modified:   WebContent/WEB-INF/language/admin/message_zh_CN.properties
#     modified:   WebContent/WEB-INF/template/admin/order/list.ftl
#     modified:   WebContent/WEB-INF/template/admin/product/list.ftl
#     modified:   WebContent/WEB-INF/template/admin/role/add.ftl
#     modified:   WebContent/WEB-INF/template/admin/role/edit.ftl
#     modified:   WebContent/resources/admin/js/list.js
#     modified:   src/com/sencloud/controller/admin/ProductController.java
#     new file:   src/com/sencloud/report/form/ProductStockOutReportForm.java
#
chenmingleitekiiMac:MOShop maxu$ git commit -a
[master fb294e6] 导入缺货明细
 Committer: 13952522076 < maxu@chenmingleitekiiMac.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 8 files changed, 265 insertions(+)
 create mode 100644 src/com/sencloud/report/form/ProductStockOutReportForm.java
chenmingleitekiiMac:MOShop maxu$ git push -u origin master
Counting objects: 56, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (27/27), done.
Writing objects: 100% (29/29), 4.90 KiB | 0 bytes/s, done.
Total 29 (delta 19), reused 0 (delta 0)
To git@github.com:sencloudx/MOShop.git
   77bd7a9..fb294e6  master -> master
Branch master set up to track remote branch master from origin.
chenmingleitekiiMac:MOShop maxu$ git status
# On branch master
nothing to commit, working directory clean
chenmingleitekiiMac:MOShop maxu$
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值