munakata@muna-E420:~/latex$ cat ~/.ssh/config Host MYTHEN HostName mythen.hmuna.com Port 8822 IdentityFile ~/.ssh/muna_E420 User git
munakata@mythen:~/repos$ sudo ln -s /raid_vol/home/git/repos/keio2012.git /var/cache/git/keio2012
munakata@muna-E420:~/beamer/keio2012$ git config --global user.email public_mail@hmuna.com munakata@muna-E420:~/beamer/keio2012$ git config --global user.name "hisao munakata"
munakata@muna-E420:~/beamer/keio2012$ git init Reinitialized existing Git repository in /home/munakata/beamer/keio2012/.git/ munakata@muna-E420:~/beamer/keio2012$ git add *
munakata@muna-E420:~/beamer/keio2012$ git remote add e420 ssh://munakata@mythen.hmuna.com:8822/raid_vol/home/munakata/repos/keio2012.git
munakata@muna-E420:~/beamer/keio2012$ git push e420 master munakata@mythen.hmuna.com's password: Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 337 bytes, done. Total 3 (delta 2), reused 0 (delta 0) To ssh://munakata@mythen.hmuna.com:8822/raid_vol/home/munakata/repos/keio2012.git 462fe87..7a936a0 master -> master
これは以下の2つをまとめて実行したことになる
git rm --cached [ファイル名]
git checkout -f abc123 hoge.txt
− サーバーの ~/.ssh に
cat (クライアントの公開鍵)>> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys
munakata@muna-E420:~/latex$ cat ~/.ssh/config Host MYTHEN HostName mythen.hmuna.com Port 8822 IdentityFile ~/.ssh/muna_E420 User munakata
munakata@mythen:~/My_presentations/als2013JP$ git config -l color.ui=auto user.name=hisao munakata user.email=public_mail@hmuna.com core.quotepath=false core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* remote.origin.url=ssh://munakata@mythen.hmuna.com:8822/raid_vol/home/munakata/repos/als2013JP branch.master.remote=origin branch.master.merge=refs/heads/master remote.mythen.url=ssh://munakata@mythen.hmuna.com:8822/raid_vol/home/munakata/repos/als2013JP remote.mythen.fetch=+refs/heads/*:refs/remotes/mythen/*