2012年11月13日火曜日

ご当地アプリのリポジトリを移行(github ⇒ CLOUD CORE VPSサーバ)


1.以下の通り、CLOUD CORE VPSサーバに、
  jagkuma
  stamprally
  gotochi_Kumamoto_Server
 のリモートリポジトリを作成

[tkssnmr@kvps-180-235-228-157 var]$ sudo mkdir -p repo/git/jagkuma/jagkuma.git
[tkssnmr@kvps-180-235-228-157 repo]$ cd git/jagkuma/jagkuma.git/
[tkssnmr@kvps-180-235-228-157 jagkuma.git]$ sudo git --bare init --shared
[tkssnmr@kvps-180-235-228-157 jagkuma.git]$ sudo /usr/sbin/groupadd jagkuma
[tkssnmr@kvps-180-235-228-157 jagkuma.git]$ sudo /usr/sbin/usermod -G jagkuma tkssnmr
[tkssnmr@kvps-180-235-228-157 jagkuma.git]$ sudo chown root:jagkuma -R ./
[tkssnmr@kvps-180-235-228-157 jagkuma]$ sudo mkdir stamprally.git
[tkssnmr@kvps-180-235-228-157 jagkuma]$ sudo mkdir gotochi_Kumamoto_Server.git
[tkssnmr@kvps-180-235-228-157 jagkuma]$ cd stamprally.git/
[tkssnmr@kvps-180-235-228-157 stamprally.git]$ sudo git --bare init --shared
[tkssnmr@kvps-180-235-228-157 stamprally.git]$ sudo chown root:jagkuma -R ./
[tkssnmr@kvps-180-235-228-157 stamprally.git]$ cd ../gotochi_Kumamoto_Server.git/
[tkssnmr@kvps-180-235-228-157 gotochi_Kumamoto_Server.git]$ sudo git --bare init --shared
[tkssnmr@kvps-180-235-228-157 gotochi_Kumamoto_Server.git]$ sudo chown root:jagkuma -R ./

2.githubの各登録ソースをローカルにクローンする。
 (github)
  jagkuma:https://github.com/jagkuma/jagkuma.git
  stamprally:https://github.com/jagkuma/stamprally.git
  gotochi_Kumamoto_Server:https://github.com/shinobushiva/gotochi_Kumamoto_Server.git
  gotochi_Counter2:https://github.com/jagkuma/gotochi_Counter2.git

3.originのURLをそれぞれ以下に変更
  jagkuma:ssh://180.235.228.157/var/repo/git/jagkuma/jagkuma.git
  stamprally:ssh://180.235.228.157/var/repo/git/jagkuma/stamprally.git
  gotochi_Kumamoto_Server:ssh://180.235.228.157/var/repo/git/jagkuma/gotochi_Kumamoto_Server.git
  gotochi_Counter2:ssh://180.235.228.157/var/repo/git/jagkuma/gotochi_Counter2.git

4.jagkuma、stamprally、gotochi_Kumamoto_Server、gotochi_Counter2のそれぞれをプッシュする。