昨日いっていた問題ã解決ããã®ã§ï¼ããããã¦githubã§forkãããªãã¸ããªããæ¬å®¶ã«pushããæ¹æ³ï¼
æ¬å®¶ã«ã³ããã権ãããã®ãåæãªã®ã§ï¼ãµã¤ãã¯æ¬å®¶ãcloneãã¦ä½æ¥ããã°åé¡ãªãã§ãï¼ãã ï¼éä¸ã¾ã§forkã§éçºãã¦ããã ãã©ï¼ããæ¥ï¼ã³ããã権ãããã£ãããã¦æ¬å®¶ã«åæ ããããããªæã«ã¯ä¾¿å©ã§ãï¼
以ä¸folkãããªãã¸ããªã®cloneã®master branchã«ã¦ï¼
# remote ãªãã¸ããªãè¨å®ãã $ git remote add jugyo [email protected]:jugyo/termtter.git $ git fetch jugyo # git pullãã¦æ¬å®¶ã®å¤æ´ãåãè¾¼ã $ git pull --rebase jugyo # å¤æ´ãgit pushãã $ git push jugyo
ããããã¾ããéãããã©ï¼ããããã£ããã¨ããï¼ã³ã¬ï¼
ãã¾ã
remote ã® master ããã¨ã«ããå¥ã®branchããã¼ã«ã«ä½æãã¦ãã®ãï¼æ¨æ¥ã®ã¯ã¾ããã¤ã³ãã ã£ãã¿ããï¼ãã¼ã«ã«ã®master branchã¯æ®ãã¦ããã¦ï¼æ¬å®¶ã®å¤æ´ç¹ãmergeããä¸ã§pushãããã¨ããªã以ä¸ã®æ¹æ³ã使ããï¼
# ããã¯ãã£ãã $ git remote add jugyo [email protected]:jugyo/termtter.git $ git fetch jugyo # ãã¼ã«ã« ã«æ¬å®¶branchãä½æ $ git checkout -b jugyo-master jugyo/master # $ git merge master # push $ git pull --rebase jugyo master # 念ã®ãã $ git push jugyo jugyo-master:master # jugyo-master -> master
æå¾ã®pushã®ä½¿ãæ¹ãããããã£ã¦ããªãã£ããã©manèªãã ãã¡ããã¨æ¸ãã¦ããã¾ããï¼åã«
$ git push jugyo master
ã¨ãã¦ãã¾ã㨠ãã¼ã«ã«ã®master branchããªã¢ã¼ã(jugyo)ã®master branchã«pushããã¨ããæå³ã«ãªãã¾ãï¼æ¬æ¥ã¯ãã¼ã«ã«ã®jugyo-master branchããªã¢ã¼ãã®master branchã«pushãããã®ã§ï¼
$ git push jugyo jugyo-master:master
ã¨ããæ¸ãæ¹ã«ãªãã¾ãï¼