ã³ããããã°ã®Authorã¨ãCommitã«ã¾ããæ å ±ãå ¥ã£ãã
åã®ã¨ã³ããªãä¸å¸ã®ç®ã«è§¦ãã¦ææãããã®ã ãã©
ä¸çªæåã®ã¨ã³ããªã§ç´¹ä»ãã¦ããChromeæ¡å¼µã®commit logã«å«ã¾ããAuthorã¨Commitãä¼ç¤¾ã®ã¡ã¼ã«ã¢ãã¬ã¹ã ã£ãã
ãããããèªåã®ã³ã³ã½ã¼ã«ã§ã¯g logã¨ããã¨
Mon May 18 19:31:22 2015 +0900 089772a (HEAD, origin/user-topics, user-topics) Add topics index show [fkagami] Mon May 18 15:24:35 2015 +0900 fae405a (origin/signin-out, signin-out, master) Make current user [fkagami] Sat May 16 16:21:27 2015 +0900 5f39bb4 (origin/master) Merge pull request #7 from fumiyasu-kagami/signup [fkagami]
ã¿ãããªè¡¨ç¤ºã¨ãªãããã«è¨å®ãã¦ãã£ãã®ã§ãã³ããããã°ã«ã¡ã¼ã«ã¢ãã¬ã¹ãå«ã¾ãããã®ã ã¨ãããã¨ãç¥ããªãã£ãï¼å¿ãã¦ããï¼
g log --pretty=full
ã¨æã¤ã¨ãä¸ã®ãããªè¡¨ç¤ºã«ãªã
commit 24d729e39564a482aa8d7c769162983412b2b989 Author: <ã¦ã¼ã¶ã¼å> <ç»é²ã¡ã¢ã> Commit: <ã¦ã¼ã¶ã¼> <ç»é²ã¡ã¢ã> Bump gems commit 7fffd96ee3ee78013d181380c9c395b54cddc4bd Author: <ã¦ã¼ã¶ã¼å> <ç»é²ã¡ã¢ã> Commit: <ã¦ã¼ã¶ã¼å> <ç»é²ã¡ã¢ã> Add example
ããã®ç»é²ã¡ã¢ãã®é¨åã«ããããªç¤¾åãå»ã¾ãã¦ãã¦
æ¡å¼µã®å
容ãå
容ãªã ãã«ç¦ã£ãã
調ã¹ãã¨ããã以ä¸ã®ãããªã³ãã³ãã§ä¸æ¬ãã¦ã³ããããã°ã®ã¦ã¼ã¶ã¼æ å ±ãå¤æ´ã§ããããã
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='<ç»é²ãããåå>'; GIT_AUTHOR_EMAIL='<ç»é²ãããã¡ã¢ã>'; GIT_COMMITTER_NAME='<ç»é²ãããåå>'; GIT_COMMITTER_EMAIL='<ç»é²ãããã¡ã¢ã>';" HEAD
ã¾ãã¯ãäºåã«ãã£ã¬ã¯ããªã®.git/configã§ç»é²ã¢ãã¬ã¹ãè¨å®ãã¦ãããã¨ãåºæ¥ãã configã«ã¯globalã¨ãªãã¸ããªåä½ã®localãããã®ã§ãglobalãå人ã¡ã¢ãã«ãã¦ãä»äºç¨ã®ãªãã¸ããªã¯localã§ç¤¾ç¨ã¢ãã¬ã¹ã«å¤æ´ãã¦ããã¿ãããªããæ¹ã«ããã®ãä¸çªå®å ¨ãããããªã
ããããæ¬æ ¼çã«æ¨æ¸¬ãããªãããã«ããããã«ã¯å人githubã«ä¸ãã£ã¦ããå ¨ã¦ã®ãªãã¸ããªã¨ã³ããããã°ã«é¢ãã¦éå»ãæ¹ããããå¿ è¦ããã£ã¦ããªãé¢å (ãããã社ç¨PCã§å人éçºãããã¹ãã§ãªã or ã¤ã³ã¢ã©ã«ãªãã¼ã«ãå ¬éããã¹ãã§ãªã)