gitã§ã¯æ§ã ãªæ¹æ³ã§ã³ããããã°ãæ¸ãæãããã¨ãã§ãã¾ãã ãã®ä¸ä¾ã¨ãã¦ä¸åº¦è¡ã£ãå¤æ´ããªãã£ããã¨ã«ããæ¹æ³ã4ã¤ç´¹ä»ãã¾ãã åé¡1: ã©ã¤ãã©ãªã®æ°æ©è½ã試ãããã«ããããé©å½ãªã³ã¼ããæ¸ãã¦ã¿ããã§ãããè¦ããªãã $ $EDITOR $ git commit -am 'foo' $ $EDITOR $ git commit -am 'bar' $ $EDITOR $ git commit -am 'baz' ã®ããã«é©å½ãªåºåãã§ã³ããããã¦è¡ã£ããã®ã®ã çµå±å ¨é¨è¦ããªããããªãã£ããã¨ã«ãããã¨ãããã¨ã¯ã¾ã¾ããã¾ãã 解ç1: git reset âhard HEAD~{n} ã³ããããããã®å ¨ã¦ãæ´å²ããæ¶ãå»ãããå ´å㯠git reset --hard ã使ãã¾ãã ãã®ä¾ã®å ´åã¯3åã®ã³ããããå ¨ã¦ãªãã£ããã¨ã«ãããã®ã§ã 以ä¸ã®ã³ãã³ãã§æ¶ãå»ããã¨ãã§ã
{{#tags}}- {{label}}
{{/tags}}