githubに(再び)手を出してみた

何年か前に作っただけで放置していたgithubのアカウント。
最近仕事でgit使うことが多いので、お勉強を兼ねて再度使って見ることに。

初期設定はココを参考に↓
http://d.hatena.ne.jp/shim0mura/20111212/1323660740

ちなみに渡しの場合は、

$ git push -u origin master
error: The requested URL returned error: 403 while accessing https://github.com/xxx/xxx.git/info/refs

と、怒られてしまったので、

$ git remote rm origin
$ git remote add origin git@github.com:xxx/xxx.git

とすることで無事にgit push できました。

細かいコマンドとかはこれからおぼえるということで。