æ¨æ¥ãgit reset --hard HEAD ãã¦ãã¾ã£ã¦å¤§å¤ãªãã¨ã«ãªã£ã話ãæ¸ãããç§ã¯æ®æ®µããã cancel ã¨è¨ãååã« alias ãã¦ä½¿ã£ã¦ããã [alias] # ä¸ç¥ cancel = reset --hard HEAD ãããååã®ãããªãã¨ãã¾ããã£ã¦ã¯ãã¾ããªãã人éã¯ãã¹ãããã®ã ã alias ããã£ã¦å®è¡ããããã®ãåé¡ãªã®ã ããã? ãããå²ã¨ããããæä½*1ã ããalias ããªãã¦ã使ãã ããã ã¦ãã¨ã§ãcancel ãå®å ¨ã«ãªãããã«ãã¦ã¿ãã [alias] # ä¸ç¥ cancel = !git commit -a -m 'Temporary commit for cancel' && git reset --hard HEAD~ ä¸æ¦ã³ããããã¦ãããã®ã³ããããæ¶ãããããã¦ããã°ææª git reflog ããå ã«æ»ãããç¹ã«ã³ãããã
{{#tags}}- {{label}}
{{/tags}}