git命令跟踪某个文件的修改日志
首先切换到需要跟踪文件所在的目录,然后按照下面的步骤实现
1.查看某个文件的日志记录
$ git log --pretty=fuller RedController.java
commit 4ee23b98fbea741a3fc4359bb85f7606831689ad
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Tue Mar 29 15:48:15 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Tue Mar 29 15:48:15 2016 +0800
no message
commit f8620d6d74751b03d517ebe2d8dafece68bf6ac8
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 16:01:34 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 16:01:34 2016 +0800
红包返回类型json
commit b647e4690d6547606527ee1c56f630b8b0fc7cd6
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 13:59:14 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 13:59:14 2016 +0800
红包处理
commit 1d18551325b822593b128736b28df63f22ba92d6
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 11:47:37 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 11:47:37 2016 +0800
no message
可以看到这个文件的修改记录,包括每次提交的生成的hash值、
作者、提交的日期等
2.用git show 提交的hash值可以查看文件具体的修改信息
git show 1d18551325b822593b128736b28df63f22ba92d6
$ git show 1d18551325b822593b128736b28df63f22ba92d6
commit 1d18551325b822593b128736b28df63f22ba92d6
Author: xiaoming <xiaoming@shangpin.com>
Date: Thu Mar 24 11:47:37 2016 +0800
no message
diff --git a/mobile-apiv2/src/main/java/com/shangpin/api/controller/RedControlle
index 0000000..3ee6a52
--- /dev/null
+++ b/mobile-apiv2/src/main/java/com/shangpin/api/controller/RedController.java
@@ -0,0 +1,66 @@
+package com.shangpin.api.controller;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.shangpin.biz.bo.Red;
+import com.shangpin.biz.bo.RedResult;
+import com.shangpin.biz.bo.base.ContentBuilder;
+import com.shangpin.biz.service.ASPBizReturnGoodsService;
+import com.shangpin.biz.service.RedBizService;
+import com.shangpin.utils.JsonUtil;
+/**
+ * 红包口令业务
+ * @author xiaoming
+ *
+ */
+@Controller
+
+public class RedController extends BaseController {
+ @SuppressWarnings("unused")
+ private static final Logger logger = LoggerFactory.getLogger(RedControll
+ private ASPBizReturnGoodsService returnGoodsService;
+ @Autowired
+ private RedBizService redBizService;
+ /**
+ * 红包口令 主站红包是否存在 存在则返回搜索页 else 响应app
+ * @param request
+ * @param pageIndex
+ * @param pageSize
首先切换到需要跟踪文件所在的目录,然后按照下面的步骤实现
1.查看某个文件的日志记录
$ git log --pretty=fuller RedController.java
commit 4ee23b98fbea741a3fc4359bb85f7606831689ad
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Tue Mar 29 15:48:15 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Tue Mar 29 15:48:15 2016 +0800
no message
commit f8620d6d74751b03d517ebe2d8dafece68bf6ac8
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 16:01:34 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 16:01:34 2016 +0800
红包返回类型json
commit b647e4690d6547606527ee1c56f630b8b0fc7cd6
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 13:59:14 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 13:59:14 2016 +0800
红包处理
commit 1d18551325b822593b128736b28df63f22ba92d6
Author: xiaoming <xiaoming@shangpin.com>
AuthorDate: Thu Mar 24 11:47:37 2016 +0800
Commit: xiaoming <xiaoming@shangpin.com>
CommitDate: Thu Mar 24 11:47:37 2016 +0800
no message
可以看到这个文件的修改记录,包括每次提交的生成的hash值、
作者、提交的日期等
2.用git show 提交的hash值可以查看文件具体的修改信息
git show 1d18551325b822593b128736b28df63f22ba92d6
$ git show 1d18551325b822593b128736b28df63f22ba92d6
commit 1d18551325b822593b128736b28df63f22ba92d6
Author: xiaoming <xiaoming@shangpin.com>
Date: Thu Mar 24 11:47:37 2016 +0800
no message
diff --git a/mobile-apiv2/src/main/java/com/shangpin/api/controller/RedControlle
index 0000000..3ee6a52
--- /dev/null
+++ b/mobile-apiv2/src/main/java/com/shangpin/api/controller/RedController.java
@@ -0,0 +1,66 @@
+package com.shangpin.api.controller;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.shangpin.biz.bo.Red;
+import com.shangpin.biz.bo.RedResult;
+import com.shangpin.biz.bo.base.ContentBuilder;
+import com.shangpin.biz.service.ASPBizReturnGoodsService;
+import com.shangpin.biz.service.RedBizService;
+import com.shangpin.utils.JsonUtil;
+/**
+ * 红包口令业务
+ * @author xiaoming
+ *
+ */
+@Controller
+
+public class RedController extends BaseController {
+ @SuppressWarnings("unused")
+ private static final Logger logger = LoggerFactory.getLogger(RedControll
+ private ASPBizReturnGoodsService returnGoodsService;
+ @Autowired
+ private RedBizService redBizService;
+ /**
+ * 红包口令 主站红包是否存在 存在则返回搜索页 else 响应app
+ * @param request
+ * @param pageIndex
+ * @param pageSize