You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ãã®è¨äºã¯Git Advent Calendar 2014ã®6æ¥ç®ã®è¨äºã§ãï¼ ï¼æ´æ°ããæ¼ã«ãªã£ã¦ãã¾ãã¾ãããããããªããï¼ï¼ï¼ ã¿ãªããï¼ Gitã®-pãªãã·ã§ã³ä½¿ã£ã¦ã¾ããï¼ ä»æ¥ã¯ä¾¿å©ãª-pãªãã·ã§ã³ã使ããã³ãã³ãã¨ã使ãã©ããããç´¹ä»ãã¾ãï¼ ç´¹ä»ããå 容 git add -p git stash -p git log -p git stash show -p git checkout -p git add -p ãã£ã¨ãããä¸çªæåã§ããï¼ è¿½å ãããå¤æ´ãããã¡ã¤ã«åä½ã§ã¯ãªãå·®åã®ãããã¯ãã¨ã«è¿½å ãã¦ãããã¨ãã§ãã¾ãã Git管çããã¦ããindex.htmlã«ã以ä¸ã®ä¿®æ£ãå ããã¨ãã¾ãããã ãããã¼ã®ã¡ãã¥ã¼ã®æåãå°æåãã大æåã«å¤æ´ Contactã«æ°ãããªã³ã¯ã追å ãã®ã¾ã¾ä¸¡æ¹ã¾ã¨ãã¦ã³ããããã¦ã³ãããã¡ãã»ã¼ã¸ã«ä¸¡æ¹ã®å 容ãæ¸ãã¦ããã¨ããã®ãã²
2014å¹´05æ19æ¥10:17 Git gitã®æ´å²ä¸ããpasswordãå®å ¨ã«åé¤ããã git ã§ç®¡çãã¦ããããã¸ã§ã¯ãã§ããã£ããã¾ã£ããã¹ã¯ã¼ããç´ãè¾¼ãã§ãã¾ã£ãâ¦ï¼ãã¿ãããªãã¨ããã£ã¦ãã©ããããããããã¼ï¼ï¼ãã¨æã£ã¦ãããã§ãããgit filter-branch ã¨ããæå¼·ã®ã³ãã³ãã使ãã°ãªãã¨ããªããã§ããã ä»å㯠PASSWORD ã¨ããæååãå«ãè¡ã git ã®æ´å²ä¸ããå®å ¨ã«åé¤ããã¨ããã®ããã£ã¦ã¿ã¾ãããsed -e '/xxx/d' ã xxx ã¨ããæååãå«ãè¡ãåé¤ (delete) ããã³ãã³ãã§ãã git filter-branch --tree-filter "find . -type f -exec sed -i '' -e '/PASSWORD/d' {} \;" ãããã㨠PASSWORD ã¨ããæååãå«ãè¡ã®çè·¡ãå¥éº
Gitã使ã£ã¦ãã¦ãå¾ããã³ããããã°ãå¤æ´ããæ¹æ³ã説æããã ã¾ãããããªå±¥æ´ãããã¨ããã commit 37bde0bc18e4e3ac0bf170c045cec34662b7aad4 Author: coiledcoil Date: Mon Aug 16 02:08:11 2010 +0900 message3 commit 85c337ad4de254bc92c73b5c1504013ee36baa3f Author: coiledcoil Date: Mon Aug 16 02:08:10 2010 +0900 message2 commit 664835c29bf5689d673b4f4349f2eaa3cfc85b23 Author: coiledcoil Date: Mon Aug 16 02:08:08 2010 +0900 message1 commit 4a053
8. ã³ãããã«å ¥ã£ã¦ãæ å ± ãªãã¸ã§ã³ (SHA-1 ããã·ã¥) ä¾: 23cdd334e6e251336ca7dd34e0f6e3ea08b5d0db Author (ã³ããããä½æãã人) ä¾: ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã«ããããéã£ã人 Committer (ã³ããããé©ç¨ãã人) ä¾: åãåã£ãããããåãè¾¼ãã 人 ãã¡ã¤ã«ã®ã¹ãããã·ã§ãã (tree) ã³ãããã§å¤æ´ããããã¡ã¤ã«ãå«ãããªã¼ï¼èª¬æã¯çç¥ï¼ 1ã¤åã®ã³ãããã®ãªãã¸ã§ã³ ä¾: 4717e3cf182610e9e82940ac45abb0d422a76d77 9. ã³ãããã«å ¥ã£ã¦ãæ å ± ãªãã¸ã§ã³ (SHA-1 ããã·ã¥) ä¾: 23cdd334e6e251336ca7dd34e0f6e3ea08b5d0db Author (ã³ããããä½æãã人) ä¾: ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã«ããããéã£ã人 Co
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}