git push
相关
error: RPC failed; result=22, HTTP code = 504
Why am I getting a 504 error when accessing Git over HTTP?
If you’re getting a message of the form:
error: RPC failed; result=22, HTTP code = 504
When attempting to clone your Git repository over HTTP, it probably means that there’s a size issue. Git is not designed to perform well over HTTP with repositories larger than about 1 GB. Over HTTP, Git has to be served using FastCGI and so the FastCGI process can sometimes time out before the command can return results. To your team, this looks like intermittent failure and some issue with our servers, but it’s actually Git’s inability to send the amounts of data in question fast enough.
To work around this, if you need to have a large Git repository, we recommend accessing it via SSH using the instructions at:
How Do I Connect To My Git Repository?
You can email us as well at support [at] to open a support ticket and request that we run garbage collection on your server, which sometimes can free up enough space to make a difference.
Alternatively, we do offer Subversion, which is great for hosting large artifact repositories for your team as well, and because it’s not distributed, doesn’t have as many issues with copying large amounts of data.
git status 提示某个子模块 fatal: git status --porcelain failed
详见,https://stackoverflow.com/questions/5456683/why-do-i-get-fatal-git-status-porcelain-failed。
解决,到对应子模块,git init 一下即可。