校园交易平台后台系统git操作全过程

简介: 项目初始化Shusheng Shi@PC-of-sss MINGW64 /h/mmall$ touch README.mdShusheng Shi@PC-of-sss MINGW64 /h/mmall$ touch .

项目初始化


Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ touch README.md

Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ touch .gitignore

Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ git init
Initialized empty Git repository in H:/mmall/.git/

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore
        README.md
        pom.xml
        src/

nothing added to commit but untracked files present (use "git add" to track)

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git add .
warning: CRLF will be replaced by LF in .gitignore.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/index.jsp.
The file will have its original line endings in your working directory.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   .gitignore
        new file:   README.md
        new file:   pom.xml
        new file:   src/main/webapp/WEB-INF/web.xml
        new file:   src/main/webapp/index.jsp


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git commit -am 'first commit init project'
[master (root-commit) 0383eae] first commit init project
 5 files changed, 69 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 pom.xml
 create mode 100644 src/main/webapp/WEB-INF/web.xml
 create mode 100644 src/main/webapp/index.jsp

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git remote add origin git@gitee.com:shushengshi/mmall_learning.git

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch
* master

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u origin master
To gitee.com:shushengshi/mmall_learning.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@gitee.com:shushengshi/mmall_learning.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git pull
warning: no common commits
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From gitee.com:shushengshi/mmall_learning
 * [new branch]      master     -> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u origin master
To gitee.com:shushengshi/mmall_learning.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@gitee.com:shushengshi/mmall_learning.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u -f origin master
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (11/11), 1.22 KiB | 0 bytes/s, done.
Total 11 (delta 0), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
 + 1e43320...0383eae master -> master (forced update)
Branch master set up to track remote branch master from origin.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch
* master

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch -r
  origin/master

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git checkout -b v1.0 origin/master
Switched to a new branch 'v1.0'
Branch v1.0 set up to track remote branch master from origin.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git branch
  master
* v1.0

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push origin HEAD -u
Total 0 (delta 0), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
 * [new branch]      HEAD -> v1.0
Branch v1.0 set up to track remote branch v1.0 from origin.

配置文件完成


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
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:   pom.xml
        modified:   src/main/webapp/WEB-INF/web.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/main/java/
        src/main/resources/
        src/main/webapp/WEB-INF/dispatcher-servlet.xml

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

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/CartMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/CategoryMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/OrderItemMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/OrderMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/PayInfoMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ProductMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ShippingMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/UserMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Cart.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Category.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Order.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/OrderItem.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/PayInfo.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Product.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Shipping.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/User.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/applicationContext-datasource.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/applicationContext.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/generatorConfig.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/CartMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/CategoryMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/OrderItemMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/OrderMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/PayInfoMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ProductMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ShippingMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/UserMapper.xml.
The file will have its original line endings in your working directory.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   pom.xml
        new file:   src/main/java/com/mmall/dao/CartMapper.java
        new file:   src/main/java/com/mmall/dao/CategoryMapper.java
        new file:   src/main/java/com/mmall/dao/OrderItemMapper.java
        new file:   src/main/java/com/mmall/dao/OrderMapper.java
        new file:   src/main/java/com/mmall/dao/PayInfoMapper.java
        new file:   src/main/java/com/mmall/dao/ProductMapper.java
        new file:   src/main/java/com/mmall/dao/ShippingMapper.java
        new file:   src/main/java/com/mmall/dao/UserMapper.java
        new file:   src/main/java/com/mmall/pojo/Cart.java
        new file:   src/main/java/com/mmall/pojo/Category.java
        new file:   src/main/java/com/mmall/pojo/Order.java
        new file:   src/main/java/com/mmall/pojo/OrderItem.java
        new file:   src/main/java/com/mmall/pojo/PayInfo.java
        new file:   src/main/java/com/mmall/pojo/Product.java
        new file:   src/main/java/com/mmall/pojo/Shipping.java
        new file:   src/main/java/com/mmall/pojo/User.java
        new file:   src/main/resources/applicationContext-datasource.xml
        new file:   src/main/resources/applicationContext.xml
        new file:   src/main/resources/datasource.properties
        new file:   src/main/resources/generatorConfig.xml
        new file:   src/main/resources/logback.xml
        new file:   src/main/resources/mappers/CartMapper.xml
        new file:   src/main/resources/mappers/CategoryMapper.xml
        new file:   src/main/resources/mappers/OrderItemMapper.xml
        new file:   src/main/resources/mappers/OrderMapper.xml
        new file:   src/main/resources/mappers/PayInfoMapper.xml
        new file:   src/main/resources/mappers/ProductMapper.xml
        new file:   src/main/resources/mappers/ShippingMapper.xml
        new file:   src/main/resources/mappers/UserMapper.xml
        new file:   src/main/resources/mmall.properties
        new file:   src/main/webapp/WEB-INF/dispatcher-servlet.xml
        modified:   src/main/webapp/WEB-INF/web.xml


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am 'project init commit'
[v1.0 ff5f0ba] project init commit
 33 files changed, 3048 insertions(+), 10 deletions(-)
 create mode 100644 src/main/java/com/mmall/dao/CartMapper.java
 create mode 100644 src/main/java/com/mmall/dao/CategoryMapper.java
 create mode 100644 src/main/java/com/mmall/dao/OrderItemMapper.java
 create mode 100644 src/main/java/com/mmall/dao/OrderMapper.java
 create mode 100644 src/main/java/com/mmall/dao/PayInfoMapper.java
 create mode 100644 src/main/java/com/mmall/dao/ProductMapper.java
 create mode 100644 src/main/java/com/mmall/dao/ShippingMapper.java
 create mode 100644 src/main/java/com/mmall/dao/UserMapper.java
 create mode 100644 src/main/java/com/mmall/pojo/Cart.java
 create mode 100644 src/main/java/com/mmall/pojo/Category.java
 create mode 100644 src/main/java/com/mmall/pojo/Order.java
 create mode 100644 src/main/java/com/mmall/pojo/OrderItem.java
 create mode 100644 src/main/java/com/mmall/pojo/PayInfo.java
 create mode 100644 src/main/java/com/mmall/pojo/Product.java
 create mode 100644 src/main/java/com/mmall/pojo/Shipping.java
 create mode 100644 src/main/java/com/mmall/pojo/User.java
 create mode 100644 src/main/resources/applicationContext-datasource.xml
 create mode 100644 src/main/resources/applicationContext.xml
 create mode 100644 src/main/resources/datasource.properties
 create mode 100644 src/main/resources/generatorConfig.xml
 create mode 100644 src/main/resources/logback.xml
 create mode 100644 src/main/resources/mappers/CartMapper.xml
 create mode 100644 src/main/resources/mappers/CategoryMapper.xml
 create mode 100644 src/main/resources/mappers/OrderItemMapper.xml
 create mode 100644 src/main/resources/mappers/OrderMapper.xml
 create mode 100644 src/main/resources/mappers/PayInfoMapper.xml
 create mode 100644 src/main/resources/mappers/ProductMapper.xml
 create mode 100644 src/main/resources/mappers/ShippingMapper.xml
 create mode 100644 src/main/resources/mappers/UserMapper.xml
 create mode 100644 src/main/resources/mmall.properties
 create mode 100644 src/main/webapp/WEB-INF/dispatcher-servlet.xml
 rewrite src/main/webapp/WEB-INF/web.xml (93%)

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (43/43), done.
Writing objects: 100% (46/46), 19.54 KiB | 0 bytes/s, done.
Total 46 (delta 17), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
   0383eae..ff5f0ba  v1.0 -> v1.0

用户模块完成


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
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:   pom.xml
        modified:   src/main/java/com/mmall/dao/UserMapper.java
        modified:   src/main/resources/logback.xml
        modified:   src/main/resources/mappers/UserMapper.xml
        modified:   src/main/webapp/WEB-INF/dispatcher-servlet.xml
        modified:   src/main/webapp/WEB-INF/web.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/main/java/com/mmall/common/
        src/main/java/com/mmall/controller/
        src/main/java/com/mmall/service/
        src/main/java/com/mmall/util/

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

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/UserMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/UserMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/Const.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/ResponseCode.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/ServerResponse.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/TokenCache.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/backend/UserManageController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/UserController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IUserService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/UserServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/MD5Util.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/PropertiesUtil.java.
The file will have its original line endings in your working directory.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   pom.xml
        new file:   src/main/java/com/mmall/common/Const.java
        new file:   src/main/java/com/mmall/common/ResponseCode.java
        new file:   src/main/java/com/mmall/common/ServerResponse.java
        new file:   src/main/java/com/mmall/common/TokenCache.java
        new file:   src/main/java/com/mmall/controller/backend/UserManageController.java
        new file:   src/main/java/com/mmall/controller/portal/UserController.java
        modified:   src/main/java/com/mmall/dao/UserMapper.java
        new file:   src/main/java/com/mmall/service/IUserService.java
        new file:   src/main/java/com/mmall/service/impl/UserServiceImpl.java
        new file:   src/main/java/com/mmall/util/MD5Util.java
        new file:   src/main/java/com/mmall/util/PropertiesUtil.java
        modified:   src/main/resources/logback.xml
        modified:   src/main/resources/mappers/UserMapper.xml
        modified:   src/main/webapp/WEB-INF/dispatcher-servlet.xml
        modified:   src/main/webapp/WEB-INF/web.xml


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '用户模块'
[v1.0 cf30e25] 用户模块
 16 files changed, 828 insertions(+), 35 deletions(-)
 create mode 100644 src/main/java/com/mmall/common/Const.java
 create mode 100644 src/main/java/com/mmall/common/ResponseCode.java
 create mode 100644 src/main/java/com/mmall/common/ServerResponse.java
 create mode 100644 src/main/java/com/mmall/common/TokenCache.java
 create mode 100644 src/main/java/com/mmall/controller/backend/UserManageController.java
 create mode 100644 src/main/java/com/mmall/controller/portal/UserController.java
 create mode 100644 src/main/java/com/mmall/service/IUserService.java
 create mode 100644 src/main/java/com/mmall/service/impl/UserServiceImpl.java
 create mode 100644 src/main/java/com/mmall/util/MD5Util.java
 create mode 100644 src/main/java/com/mmall/util/PropertiesUtil.java

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (35/35), 9.47 KiB | 0 bytes/s, done.
Total 35 (delta 10), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
   ff5f0ba..cf30e25  v1.0 -> v1.0

商品模块完成


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
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:   src/main/java/com/mmall/common/Const.java
        modified:   src/main/java/com/mmall/dao/ProductMapper.java
        modified:   src/main/java/com/mmall/util/PropertiesUtil.java
        modified:   src/main/resources/mappers/ProductMapper.xml
        modified:   src/main/webapp/index.jsp

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/main/java/com/mmall/controller/backend/ProductManageController.java
        src/main/java/com/mmall/controller/portal/ProductController.java
        src/main/java/com/mmall/service/IFileService.java
        src/main/java/com/mmall/service/IProductService.java
        src/main/java/com/mmall/service/impl/FileServiceImpl.java
        src/main/java/com/mmall/service/impl/ProductServiceImpl.java
        src/main/java/com/mmall/util/DateTimeUtil.java
        src/main/java/com/mmall/util/FTPUtil.java
        src/main/java/com/mmall/vo/

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

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/Const.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ProductMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/PropertiesUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ProductMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/index.jsp.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/backend/ProductManageController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/ProductController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IFileService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IProductService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/FileServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/ProductServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/DateTimeUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/FTPUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/vo/ProductDetailVo.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/vo/ProductListVo.java.
The file will have its original line endings in your working directory.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   src/main/java/com/mmall/common/Const.java
        new file:   src/main/java/com/mmall/controller/backend/ProductManageController.java
        new file:   src/main/java/com/mmall/controller/portal/ProductController.java
        modified:   src/main/java/com/mmall/dao/ProductMapper.java
        new file:   src/main/java/com/mmall/service/IFileService.java
        new file:   src/main/java/com/mmall/service/IProductService.java
        new file:   src/main/java/com/mmall/service/impl/FileServiceImpl.java
        new file:   src/main/java/com/mmall/service/impl/ProductServiceImpl.java
        new file:   src/main/java/com/mmall/util/DateTimeUtil.java
        new file:   src/main/java/com/mmall/util/FTPUtil.java
        modified:   src/main/java/com/mmall/util/PropertiesUtil.java
        new file:   src/main/java/com/mmall/vo/ProductDetailVo.java
        new file:   src/main/java/com/mmall/vo/ProductListVo.java
        modified:   src/main/resources/mappers/ProductMapper.xml
        modified:   src/main/webapp/index.jsp


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '商品模块'
[v1.0 0c8dab1] 商品模块
 15 files changed, 1055 insertions(+), 16 deletions(-)
 create mode 100644 src/main/java/com/mmall/controller/backend/ProductManageController.java
 create mode 100644 src/main/java/com/mmall/controller/portal/ProductController.java
 create mode 100644 src/main/java/com/mmall/service/IFileService.java
 create mode 100644 src/main/java/com/mmall/service/IProductService.java
 create mode 100644 src/main/java/com/mmall/service/impl/FileServiceImpl.java
 create mode 100644 src/main/java/com/mmall/service/impl/ProductServiceImpl.java
 create mode 100644 src/main/java/com/mmall/util/DateTimeUtil.java
 create mode 100644 src/main/java/com/mmall/util/FTPUtil.java
 create mode 100644 src/main/java/com/mmall/vo/ProductDetailVo.java
 create mode 100644 src/main/java/com/mmall/vo/ProductListVo.java

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 34, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (34/34), 10.86 KiB | 0 bytes/s, done.
Total 34 (delta 11), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
   6d19e5a..0c8dab1  v1.0 -> v1.0

收货地址模块完成


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
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:   src/main/java/com/mmall/dao/ShippingMapper.java
        modified:   src/main/resources/mappers/ShippingMapper.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/main/java/com/mmall/controller/portal/ShippingController.java
        src/main/java/com/mmall/service/IShippingService.java
        src/main/java/com/mmall/service/impl/ShippingServiceImpl.java

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

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ShippingMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ShippingMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/ShippingController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IShippingService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/ShippingServiceImpl.java.
The file will have its original line endings in your working directory.

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        new file:   src/main/java/com/mmall/controller/portal/ShippingController.java
        modified:   src/main/java/com/mmall/dao/ShippingMapper.java
        new file:   src/main/java/com/mmall/service/IShippingService.java
        new file:   src/main/java/com/mmall/service/impl/ShippingServiceImpl.java
        modified:   src/main/resources/mappers/ShippingMapper.xml


Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '收货地址模块'
[v1.0 eb1bb33] 收货地址模块
 5 files changed, 295 insertions(+), 25 deletions(-)
 create mode 100644 src/main/java/com/mmall/controller/portal/ShippingController.java
 create mode 100644 src/main/java/com/mmall/service/IShippingService.java
 create mode 100644 src/main/java/com/mmall/service/impl/ShippingServiceImpl.java

Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 19, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (19/19), 3.45 KiB | 0 bytes/s, done.
Total 19 (delta 9), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
   8c735cb..eb1bb33  v1.0 -> v1.0

目录
相关文章
|
7月前
|
开发工具 git
记IDEA Git版本回退并push到远程操作
记IDEA Git版本回退并push到远程操作
175 1
记IDEA Git版本回退并push到远程操作
|
7月前
|
开发工具 git 开发者
|
4月前
|
敏捷开发 存储 开发工具
版本控制系统的选择:Git与SVN的比较
【8月更文挑战第14天】Git和SVN都是优秀的版本控制系统,它们各自具有独特的优势和适用场景。在选择版本控制系统时,需要根据具体的项目需求、团队特点和开发模式来综合考量。对于需要分布式团队协作、高效处理大型项目或采用敏捷开发模式的团队来说,Git是一个更好的选择。而对于传统团队、集中式开发或简单项目来说,SVN可能更加合适。无论选择哪种版本控制系统,都应该充分利用其提供的工具和功能来提高代码质量和开发效率。
|
1月前
|
数据可视化 开发工具 git
如何解决 Git 版本控制系统中冲突的问题?
在Git版本控制系统中,冲突是指在合并或拉取操作时,两个或多个开发者对同一文件的同一部分进行了不同的修改,导致Git无法自动确定应该采用哪种修改。
37 1
|
6月前
|
缓存 开发工具 git
windows系统通过git上传代码
windows系统通过git上传代码
47 1
|
4月前
|
开发工具 git
【Mac 系统】解决git clone速度慢
本文提供了解决Mac系统上使用git clone时速度慢的问题的方法。
169 0
|
6月前
|
Linux 持续交付 开发工具
版本控制系统的选择:Git vs. Mercurial
【6月更文挑战第20天】Git vs. Mercurial: 两者都是流行的DVCS,Git由Linus Torvalds创建,以其速度和复杂分支管理著称,适合大型项目和有经验的开发者。Mercurial,由Matt Mackall开发,以其简洁命令行和易用性吸引初学者。Git社区更大,扩展更丰富,而Mercurial在某些场景下可能更直观。选择取决于项目需求、团队经验和偏好。
|
6月前
|
开发工具 git
idea的git reset current branch to here操作详解
idea的git reset current branch to here操作详解
687 1
|
5月前
|
Ubuntu 开发工具 git
git 超实用教程【人人必会!】(含大厂的 git 操作规范)
git 超实用教程【人人必会!】(含大厂的 git 操作规范)
91 0
|
7月前
|
开发工具 git 开发者
【专栏】探讨了 Git 中的 `git rebase` 操作,它用于重新应用提交到另一分支,改变历史顺序
【4月更文挑战第29天】本文探讨了 Git 中的 `git rebase` 操作,它用于重新应用提交到另一分支,改变历史顺序。与 `git merge` 不同,rebase 重写提交历史,提供简洁线性的历史记录。文章介绍了 rebase 的基本操作、应用场景,如整理提交历史、解决冲突和整合分支,并强调了使用注意事项,如避免在公共分支上操作。尽管 rebase 可以带来整洁的历史和冲突解决便利,但其潜在的风险和可能导致的历史混乱需谨慎对待。理解并恰当使用 `git rebase` 可以提升开发效率和代码质量。
231 1