Transfer git repositories from GitLab to GitHub – can we, how to and pitfalls (if any)?

You can transfer those (simply by adding a remote to a GitHub repo and pushing them) create an empty repo on GitHub git remote add github https://[email protected]/yourLogin/yourRepoName.git git push –mirror github The history will be the same. But you will lose the access control (teams defined in GitLab with specific access rights on your repo) … Read more

Chunked encoding and content-length header

No: “Messages MUST NOT include both a Content-Length header field and a non-identity transfer-coding. If the message does include a non-identity transfer-coding, the Content-Length MUST be ignored.” (RFC 2616, Section 4.4) And no, you can use Content-Length and stream; the protocol doesn’t constrain how your implementation works.

Content Transfer Encoding 7bit or 8 bit

It can be a bit dense to read, but the “Content-Transfer-Encoding” section of RFC 1341 has all of the details: http://www.w3.org/Protocols/rfc1341/5_Content-Transfer-Encoding.html The situation kinda goes from bad to worse. Here’s my summary: Background SMTP, by definition (RFC 821), limits mail to lines of 1000 characters of 7 bits each. That means that none of the … Read more

SFTP file lock mechanism

SFTP protocol supports locking since version 5. See the specification. You didn’t specify, what SFTP server are you using. So I’m assuming the most widespread one, the OpenSSH. The OpenSSH supports SFTP version 3 only, so it does not support locking. Anyway, even if your server supported file locking, most SFTP clients/libraries won’t support SFTP … Read more