![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPZUZMP_m8VR1GP7FW65X3YUbJsDvF6nMzpIhJ5D0lfYqMZ7e2CG-BMEriO-uaFO49FCaRvlG-Wy0lXAFE1oVeBfe1t8wXaz_ADWiyzvfAkzlpP27EkQI9m0Q_yjZKqt0RTkfHULU70e5amF5nCB9gVTBrC7carAwVUGdDN0CEJdNlbw6BUFmNnmTj/s1600/git.png)
ローカルPCでgit管理されているリポジトリを本番にmergeアップデートする方法。
本番がbare=trueになっている必要がある。
【確認方法】
$ git config --get-all core.bare
true : 受け入れ状態
false : 受け入れ不可
【切替方法】
# true->false
$ git config --bool core.bare false
# false->true
$ git config --bool core.bare true
【HEADがずれてる時の解消】
$ git reset --hard HEAD
※参考
http://blog.nishimu.land/entry/20080514/1210755577