![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPZUZMP_m8VR1GP7FW65X3YUbJsDvF6nMzpIhJ5D0lfYqMZ7e2CG-BMEriO-uaFO49FCaRvlG-Wy0lXAFE1oVeBfe1t8wXaz_ADWiyzvfAkzlpP27EkQI9m0Q_yjZKqt0RTkfHULU70e5amF5nCB9gVTBrC7carAwVUGdDN0CEJdNlbw6BUFmNnmTj/s1600/git.png)
$ git config --global push.default current
--
git pushでfatal-errorが出る場合の対応
事象
```
$ git push http://git.ideacompo.com/2/gitpage.git master
Enumerating objects: 2342, done.
Counting objects: 100% (2342/2342), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2207/2207), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
fatal: the remote end hung up unexpectedly
Writing objects: 100% (2342/2342), 273.53 MiB | 8.68 MiB/s, done.
Total 2342 (delta 629), reused 0 (delta 0)
fatal: the remote end hung up unexpectedly
Everything up-to-date
```
対応1
参考 : https://qiita.com/tomoro_2/items/a9a8d3fd47b236882b1b
$ git config --global http.postBuffer 1048576000
※自宅サーバーでは、これでは解決せず・・・
単純にリポジトリが140MBほどあったので、無駄なデータは修正