Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

how to git commit in java (both android and linux/Win) ? Eventually through gitlab REST api?

I'm looking for advice to implement a Java method to commit and push to gitlab, which works both on android (old SDK, small footprint) and linux/windows. I'm not asking for a library that fully implements the git protocol: just the basic commit/push is enough.

I'm aware there are several options:

  • Using jgit: but it apparently has problems with android
  • Using gitlab REST api: I know of the doc but it's not clear for me how to implement a java method that would reproduce the "git commit" CLI, and I find it bizarre that you need to POST the full file content (instead of just the diff): what about 1GB files ?

Thanks a lot for your help !

question from:https://stackoverflow.com/questions/65868227/how-to-git-commit-in-java-both-android-and-linux-win-eventually-through-gitl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...