gitã§ãªã¢ã¼ãã®ãªãã¸ããªã«pushããcommitãåãæ¶ãããã¨ãã«ã¯rebaseã使ãã¾ãã git rebase -i HEAD~2 ã¨ããã¨ãã¨ãã£ã¿ãéãã¦éå»ï¼ååã®ã³ãããæã®ã³ã¡ã³ãã表示ããã¾ãã ã³ã¡ã³ãã®2è¡ç®ãåé¤ãã¦ä¿åããã¨ãååã®ã³ããããåãæ¶ããã¾ãã ãã®å¾ã git push origin +master ããã°ï¼¯ï¼«ã rebaseã¯ãªã¢ã¼ãã»ãã¼ã«ã«å ±ã«HEADã®ä½ç½®ãå¤æ´ããã¾ãã ãªã¢ã¼ãã®ã¿ãã¾ãã¯ãã¼ã«ã«ã®ã¿ã®å ´å㯠ï¼ãªã¢ã¼ãã®ã¿ï¼ git push -f origin HEAD^:master ï¼ãã¼ã«ã«ã®ã¿ï¼ git reset HEAD^ ãã¼ã«ã«ã®ã¿ã³ããããåãæ¶ããå ´åããªã¢ã¼ãã®ã»ããä¸ä»£ãé²ãã§ãããã¨ã«ãªãã®ã§ãresetå¾ã«pushãããã¨ããã¨ã¨ã©ã¼ã«ãªãã¾ãã ãã®å ´åã¯ä¸åº¦rebaseãã¦ä¸ä»£ãåãããå¿ è¦ãã
{{#tags}}- {{label}}
{{/tags}}