When you push commits to git, you sometimes might get into this error. I got this when pushing hugo code into git.
git push -u origin main Enumerating objects: 61, done. Counting objects: 100% (61/61), done. Delta compression using up to 4 threads Compressing objects: 100% (45/45), done. error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet Writing objects: 100% (54/54), 2.07 MiB | 5.37 MiB/s, done. Total 54 (delta 14), reused 0 (delta 0), pack-reused 0 (from 0) fatal: the remote end hung up unexpectedly This is caused by git buffer settings. Run:
Prerequisites # Install PHP Install nginx Install Hugo # pkg install gohugo (install as root or do sudo) follow this after install - https://web.archive.org/web/20231202094641/https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/ remember to remove hugo.toml from the root directory otherwise you’ll get a “not Found” error! Tip # Install the GUI (maybe xfce or Kde5) so you edit md files, update them on the fly. Copy pasting and updating is easier with the gui and the terminal available. Refer to Hugo Cheatsheat if you need instructions to create the new site. If you start getting weird errors from Git, just create a new hugo site, copy your contents and config.toml and follow instructions again. IMO Github has a lot to be done before it becomes user friendly. I’ll write about it separately someday.
🌶️
Table Of Contents Start work on Hugo Content creation and editing Push to Git - one time only commands Push to Git - each time the website needs to be updated. Themes Emoji Support Google Analytics Old method - does not work for many themes anymore as of April, 2024 Insert Table of Content Insert an image Insert YouTube Video Add last modified date to posts Add categories and tags to your posts Add headings to your post