校园交易平台后台系统git操作全过程
生活随笔
收集整理的這篇文章主要介紹了
校园交易平台后台系统git操作全过程
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
項目初始化
Shusheng Shi@PC-of-sss MINGW64 /h/mmall $ touch README.mdShusheng Shi@PC-of-sss MINGW64 /h/mmall $ touch .gitignoreShusheng 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 masterInitial commitUntracked files:(use "git add <file>..." to include in what will be committed).gitignoreREADME.mdpom.xmlsrc/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 masterInitial commitChanges to be committed:(use "git rm --cached <file>..." to unstage)new file: .gitignorenew file: README.mdnew file: pom.xmlnew file: src/main/webapp/WEB-INF/web.xmlnew file: src/main/webapp/index.jspShusheng Shi@PC-of-sss MINGW64 /h/mmall (master) $ git commit -am 'first commit init project' [master (root-commit) 0383eae] first commit init project5 files changed, 69 insertions(+)create mode 100644 .gitignorecreate mode 100644 README.mdcreate mode 100644 pom.xmlcreate mode 100644 src/main/webapp/WEB-INF/web.xmlcreate mode 100644 src/main/webapp/index.jspShusheng Shi@PC-of-sss MINGW64 /h/mmall (master) $ git remote add origin git@gitee.com:shushengshi/mmall_learning.gitShusheng Shi@PC-of-sss MINGW64 /h/mmall (master) $ git branch * masterShusheng 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> masterShusheng 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 * masterShusheng Shi@PC-of-sss MINGW64 /h/mmall (master) $ git branch -rorigin/masterShusheng 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 branchmaster * v1.0Shusheng 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.xmlmodified: src/main/webapp/WEB-INF/web.xmlUntracked 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.xmlno 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.xmlnew file: src/main/java/com/mmall/dao/CartMapper.javanew file: src/main/java/com/mmall/dao/CategoryMapper.javanew file: src/main/java/com/mmall/dao/OrderItemMapper.javanew file: src/main/java/com/mmall/dao/OrderMapper.javanew file: src/main/java/com/mmall/dao/PayInfoMapper.javanew file: src/main/java/com/mmall/dao/ProductMapper.javanew file: src/main/java/com/mmall/dao/ShippingMapper.javanew file: src/main/java/com/mmall/dao/UserMapper.javanew file: src/main/java/com/mmall/pojo/Cart.javanew file: src/main/java/com/mmall/pojo/Category.javanew file: src/main/java/com/mmall/pojo/Order.javanew file: src/main/java/com/mmall/pojo/OrderItem.javanew file: src/main/java/com/mmall/pojo/PayInfo.javanew file: src/main/java/com/mmall/pojo/Product.javanew file: src/main/java/com/mmall/pojo/Shipping.javanew file: src/main/java/com/mmall/pojo/User.javanew file: src/main/resources/applicationContext-datasource.xmlnew file: src/main/resources/applicationContext.xmlnew file: src/main/resources/datasource.propertiesnew file: src/main/resources/generatorConfig.xmlnew file: src/main/resources/logback.xmlnew file: src/main/resources/mappers/CartMapper.xmlnew file: src/main/resources/mappers/CategoryMapper.xmlnew file: src/main/resources/mappers/OrderItemMapper.xmlnew file: src/main/resources/mappers/OrderMapper.xmlnew file: src/main/resources/mappers/PayInfoMapper.xmlnew file: src/main/resources/mappers/ProductMapper.xmlnew file: src/main/resources/mappers/ShippingMapper.xmlnew file: src/main/resources/mappers/UserMapper.xmlnew file: src/main/resources/mmall.propertiesnew file: src/main/webapp/WEB-INF/dispatcher-servlet.xmlmodified: src/main/webapp/WEB-INF/web.xmlShusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0) $ git commit -am 'project init commit' [v1.0 ff5f0ba] project init commit33 files changed, 3048 insertions(+), 10 deletions(-)create mode 100644 src/main/java/com/mmall/dao/CartMapper.javacreate mode 100644 src/main/java/com/mmall/dao/CategoryMapper.javacreate mode 100644 src/main/java/com/mmall/dao/OrderItemMapper.javacreate mode 100644 src/main/java/com/mmall/dao/OrderMapper.javacreate mode 100644 src/main/java/com/mmall/dao/PayInfoMapper.javacreate mode 100644 src/main/java/com/mmall/dao/ProductMapper.javacreate mode 100644 src/main/java/com/mmall/dao/ShippingMapper.javacreate mode 100644 src/main/java/com/mmall/dao/UserMapper.javacreate mode 100644 src/main/java/com/mmall/pojo/Cart.javacreate mode 100644 src/main/java/com/mmall/pojo/Category.javacreate mode 100644 src/main/java/com/mmall/pojo/Order.javacreate mode 100644 src/main/java/com/mmall/pojo/OrderItem.javacreate mode 100644 src/main/java/com/mmall/pojo/PayInfo.javacreate mode 100644 src/main/java/com/mmall/pojo/Product.javacreate mode 100644 src/main/java/com/mmall/pojo/Shipping.javacreate mode 100644 src/main/java/com/mmall/pojo/User.javacreate mode 100644 src/main/resources/applicationContext-datasource.xmlcreate mode 100644 src/main/resources/applicationContext.xmlcreate mode 100644 src/main/resources/datasource.propertiescreate mode 100644 src/main/resources/generatorConfig.xmlcreate mode 100644 src/main/resources/logback.xmlcreate mode 100644 src/main/resources/mappers/CartMapper.xmlcreate mode 100644 src/main/resources/mappers/CategoryMapper.xmlcreate mode 100644 src/main/resources/mappers/OrderItemMapper.xmlcreate mode 100644 src/main/resources/mappers/OrderMapper.xmlcreate mode 100644 src/main/resources/mappers/PayInfoMapper.xmlcreate mode 100644 src/main/resources/mappers/ProductMapper.xmlcreate mode 100644 src/main/resources/mappers/ShippingMapper.xmlcreate mode 100644 src/main/resources/mappers/UserMapper.xmlcreate mode 100644 src/main/resources/mmall.propertiescreate mode 100644 src/main/webapp/WEB-INF/dispatcher-servlet.xmlrewrite 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.git0383eae..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.xmlmodified: src/main/java/com/mmall/dao/UserMapper.javamodified: src/main/resources/logback.xmlmodified: src/main/resources/mappers/UserMapper.xmlmodified: src/main/webapp/WEB-INF/dispatcher-servlet.xmlmodified: src/main/webapp/WEB-INF/web.xmlUntracked 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.xmlnew file: src/main/java/com/mmall/common/Const.javanew file: src/main/java/com/mmall/common/ResponseCode.javanew file: src/main/java/com/mmall/common/ServerResponse.javanew file: src/main/java/com/mmall/common/TokenCache.javanew file: src/main/java/com/mmall/controller/backend/UserManageController.javanew file: src/main/java/com/mmall/controller/portal/UserController.javamodified: src/main/java/com/mmall/dao/UserMapper.javanew file: src/main/java/com/mmall/service/IUserService.javanew file: src/main/java/com/mmall/service/impl/UserServiceImpl.javanew file: src/main/java/com/mmall/util/MD5Util.javanew file: src/main/java/com/mmall/util/PropertiesUtil.javamodified: src/main/resources/logback.xmlmodified: src/main/resources/mappers/UserMapper.xmlmodified: src/main/webapp/WEB-INF/dispatcher-servlet.xmlmodified: src/main/webapp/WEB-INF/web.xmlShusheng 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.javacreate mode 100644 src/main/java/com/mmall/common/ResponseCode.javacreate mode 100644 src/main/java/com/mmall/common/ServerResponse.javacreate mode 100644 src/main/java/com/mmall/common/TokenCache.javacreate mode 100644 src/main/java/com/mmall/controller/backend/UserManageController.javacreate mode 100644 src/main/java/com/mmall/controller/portal/UserController.javacreate mode 100644 src/main/java/com/mmall/service/IUserService.javacreate mode 100644 src/main/java/com/mmall/service/impl/UserServiceImpl.javacreate mode 100644 src/main/java/com/mmall/util/MD5Util.javacreate mode 100644 src/main/java/com/mmall/util/PropertiesUtil.javaShusheng 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.gitff5f0ba..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.javamodified: src/main/java/com/mmall/dao/ProductMapper.javamodified: src/main/java/com/mmall/util/PropertiesUtil.javamodified: src/main/resources/mappers/ProductMapper.xmlmodified: src/main/webapp/index.jspUntracked files:(use "git add <file>..." to include in what will be committed)src/main/java/com/mmall/controller/backend/ProductManageController.javasrc/main/java/com/mmall/controller/portal/ProductController.javasrc/main/java/com/mmall/service/IFileService.javasrc/main/java/com/mmall/service/IProductService.javasrc/main/java/com/mmall/service/impl/FileServiceImpl.javasrc/main/java/com/mmall/service/impl/ProductServiceImpl.javasrc/main/java/com/mmall/util/DateTimeUtil.javasrc/main/java/com/mmall/util/FTPUtil.javasrc/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.javanew file: src/main/java/com/mmall/controller/backend/ProductManageController.javanew file: src/main/java/com/mmall/controller/portal/ProductController.javamodified: src/main/java/com/mmall/dao/ProductMapper.javanew file: src/main/java/com/mmall/service/IFileService.javanew file: src/main/java/com/mmall/service/IProductService.javanew file: src/main/java/com/mmall/service/impl/FileServiceImpl.javanew file: src/main/java/com/mmall/service/impl/ProductServiceImpl.javanew file: src/main/java/com/mmall/util/DateTimeUtil.javanew file: src/main/java/com/mmall/util/FTPUtil.javamodified: src/main/java/com/mmall/util/PropertiesUtil.javanew file: src/main/java/com/mmall/vo/ProductDetailVo.javanew file: src/main/java/com/mmall/vo/ProductListVo.javamodified: src/main/resources/mappers/ProductMapper.xmlmodified: src/main/webapp/index.jspShusheng 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.javacreate mode 100644 src/main/java/com/mmall/controller/portal/ProductController.javacreate mode 100644 src/main/java/com/mmall/service/IFileService.javacreate mode 100644 src/main/java/com/mmall/service/IProductService.javacreate mode 100644 src/main/java/com/mmall/service/impl/FileServiceImpl.javacreate mode 100644 src/main/java/com/mmall/service/impl/ProductServiceImpl.javacreate mode 100644 src/main/java/com/mmall/util/DateTimeUtil.javacreate mode 100644 src/main/java/com/mmall/util/FTPUtil.javacreate mode 100644 src/main/java/com/mmall/vo/ProductDetailVo.javacreate mode 100644 src/main/java/com/mmall/vo/ProductListVo.javaShusheng 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.git6d19e5a..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.javamodified: src/main/resources/mappers/ShippingMapper.xmlUntracked files:(use "git add <file>..." to include in what will be committed)src/main/java/com/mmall/controller/portal/ShippingController.javasrc/main/java/com/mmall/service/IShippingService.javasrc/main/java/com/mmall/service/impl/ShippingServiceImpl.javano 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.javamodified: src/main/java/com/mmall/dao/ShippingMapper.javanew file: src/main/java/com/mmall/service/IShippingService.javanew file: src/main/java/com/mmall/service/impl/ShippingServiceImpl.javamodified: src/main/resources/mappers/ShippingMapper.xmlShusheng 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.javacreate mode 100644 src/main/java/com/mmall/service/IShippingService.javacreate mode 100644 src/main/java/com/mmall/service/impl/ShippingServiceImpl.javaShusheng 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.git8c735cb..eb1bb33 v1.0 -> v1.0總結
以上是生活随笔為你收集整理的校园交易平台后台系统git操作全过程的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 表锁定模拟语句
- 下一篇: [译]你真的理解grok吗