You are browsing as a guest. Sign up (or log in) to start making projects!

9h 26m 46s logged

for the last 10 hours i’ve been trying to make twig compatible with github. but this is much much much harder than i ever thought it would’ve been.

the git smart http protocol is how git communicates to any service like github/gitlab etc. The problem for me is this protocol has had 20 years of development and improvement and it is extremely difficult to understand let alone recreate. Github only knows this form of communication (packfiles and delta compression) so I have to find a library that can communicate to github.

But it doesn’t get a lot better… there are of course git libraries but none of them are for ONLY uploading / pulling things from github. Furthermore, they are all git clones meaning they operate within a .git folder and they aren’t met to be used as a SDK in another version control client.

So, heres what I went with: the github REST API!

it lets you create commits / trees / blobs and then push them to repositories. So thats exactly what I used

0
2

Comments 0

No comments yet. Be the first!