ä»ã¾ã§ãgithubã«pushããããã ãã«gitã¯ä½¿ã£ã¦ããã ãã©ãæè¿ä»äººã¨å
±åä½æ¥ããããã«ãªã£ã¦ãçé¢ç®ã«gitãå¦ã³å§ããã ã¨ããããä»æ¥ããã£ããã¨ã å°ã£ãã git reflog ããï¼ ã¨ãããã¨ã§çµãããªãã ãã©ãä¸å¿ä»¥ä¸ã«ã¡ã¢çã«æ¸ãã¦ããã ããã³ã大æè¿ã¨ããããããããæãã¦æ¬²ããã®ã§ãããããã³ã³ã§ãã ãããã èªåã®ä½æ¥ã¯ãã¾ãã«commitããããã©ãå
±åãªãã¸ããªã«ã¯æå³ã®ããåä½ã§pushããã ãããªé¢¨ã«ããã°ããã®ããªã¨ããæ触ãæã£ãã ä½æ¥ãã©ã³ãï¼branch1ï¼ãä½ãã $ git branch branch1 ãã©ã³ããåãæ¿ãã $ git checkout branch1 ã§ãä½æ¥ãã©ã³ãã§ããããä½æ¥ãã¦ã³ããããç©ã¿éããå¾ã master ã«åãæ¿ãã $ git checkout master ä½æ¥ãã©ã³ãã®å¤æ´ããã¼ã¸ãã
{{#tags}}- {{label}}
{{/tags}}