å ã«çµè«
git remote add origin git://gabuchan.git git push -u origin master
ã©ãããå ´åã«ä¾¿å©ï¼
git cloneããã¨.git/config ã
[remote "origin"] url = git://gabuchan.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
ã¿ããã«ãªãã®ã§ãgit pushã§origin masterãçç¥ã§ããã
ãã¼ã«ã«ã§git initãã¦ãªãã¸ããªãå
ã«ä½ã£ã¦ã
ã¡ãã£ã¡ããéçºãã¦ã
ããããããªã¢ã¼ãã«ã¢ãããã¨ããã¼ãã£ã¦æãã§ãªã¢ã¼ããä½ã£ã¦ã
git remote addãããã¨ãå¤ãã
ã¡ãã£ã¨éçºãã¯ãããã®ã«ããããªããªã¢ã¼ãã§ãªãã¸ããªä½ã£ã¦ã
git cloneããã£ã¦ãã¨ããã¾ããªãã
ããã§ãgit remote addããã ãã§ã¯ã
ã¯ããã«æ¸ããoriginã¨masterã®å¤æ°ã.git/configã«ã¯æ¸ãããªãã®ã§ã
æåã§è¿½å ããå¿
è¦ãããã
git remote add origin git://gabuchan.git git config branch.master.remote origin git config branch.master.merge refs/heads/master
ããã§git pushã ãã§pushã§ããã
PS
git configã§è¿½å ãã¦ããã ãã©ããããã³ãã³ãä¸çºã§åºæ¥ãªããã®ããæãã¦ã¨ãã人ã