Thursday, August 23, 2012

ちょっとGithub

Githubの使い方はヘルプにわかりやすく書いてあってありがたい。
……んだけど、リポジトリ作ってコミットしようとしても何か変なエラーが出て拒否される。
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/fuzuki/kokon-renamer.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
とりあえず
git fetch
git merge origin/master
とやってからもう一度
git push origin master
で、無事にpushできたみたい。
とりあえずメモ。


参考:
http://d.hatena.ne.jp/snaka72/20100602/1275496817 https://help.github.com/articles/create-a-repo

No comments: