PuppyGit is A Git Client for Android, Open Source and No Ads and Free to use
PuppyGit made by Bandeapart1964 of catpuppyapp
PuppyGit is a free app, but if it helpful to you, please consider Star + Donate, it will help this project long live.
Clone A Repo
Obisdian + PuppyGit
Markor + PuppyGit
Switch DarkMode and Chinese
Resolve Conflicts/Squash Commits
PS:If you are an old user, maybe you was saw "PuppyGit Pro",and now it's disappeared, Don't worry, No Difference Of "PuppyGit Pro" and "PuppyGit", just changed the name for simple.
Not only sync codes, You can use PuppyGit sync your notes repository create by note-taking apps like: Obsidian / Markor or Other!
If your github/gitlab or other platforms account enabled 2fa, you may need create a personal access token instead your password
see:
github create personal access token
gitlab create personal access token
- fetch
- merge
- pull
- push
- files explorer
- simple file editor (only utf8 supported)
- commit history (git log)
- shallow clone(git clone with depth)
- rebase
- cherry-pick
- patch
- reflog
- tags
- stashes
- remotes
- branches
- submodules
- squash commits
- reset
- resolve conflicts
when first time connect to an unkown host, PuppyGit will ask you allow/reject as default, its more safty, also, if you want, you can allow unknown hosts by default, just checkout the Settings page.
note: PuppyGit only require private key and passphrase for connect to remote repo by ssh, it doesn't support generate ssh keys, if you want to generate ssh keys on android, try another app of mine: Ssh Key Man
see: #4
import project to Android Studio, then build, that's all. (android NDK is required)
see: The lib_build_scripts folder, and it's README
For reduce risk of password leak, Your passwords of git repos(e.g. github) are encrypted saved in PuppyGit's database on your device, the password of password encryptor is not in this open source repo for security reason, if you want build PuppyGit by yourself, you better update the password and version to yours and dont share it for more safe:
- update
EncryptorImpl.kt
, set your password encryptor, or simple use default encryptor - set your encryptor version and password in
PassEncryptHelper.kt
, the password must enough to long and better don't make it be public
note: you should not change the passwords of old versions of password encryptors, if changed, when you upgrade app will can't decrypt the passwords encrypted by encryptor with old passwords, then all saved passwords on user device will be invalid, users must delete all credentials, then restart app, then re create credentials again.
- Download strings.xml
- Translate the file's values to your language, e.g.
<help>help translate</help>
to<help>帮助翻译</help>
- Create a issue attaching the file you was translated, the issue should tell which language you traslated to
Then I'll add your language into PuppyGit in furthur version
*NOTE: the string in strings.xml like "ph_a3f241dc_NUMBER" are place holders, the last NUMBER is order, e.g. a string resource <str1>name: ph_a3f241dc_1, age: ph_a3f241dc_2</str1>
, will replaced when running, it maybe will show as: "name: abc, age: 123"
, if you have mistake with the order number, e.g.<str1>name: ph_a3f241dc_2, age: ph_a3f241dc_1</str1>
, it may cause app show wrong text like "name: 123, age: abc"
this project has many chinese comments, and some comments are out-of-date or nonsense, I have no plan clean them, but if you read the codes, and you wonder know some comments meaning, try translator or ask me is ok
The PuppyGit logo designed by Bandeapart1964(myself)
The Git Logo in PuppyGit logo is created by Jason Long, is licensed under the Creative Commons Attribution 3.0 Unported License. (The Git Logo)
The libgit2.so
built from libgit2 1.8.4(LICENSE)
The libssh2.so
built from libssh2 1.11.1(LICENSE)
The libgit24j.so
and git24j-1.0.4.20241114.jar
built from a fork of Git24j, the fork link is Here(LICENSE)
The libcrypto.so
and libssl.so
built from openssl 3.4.0(LICENSE)
The Editor of PuppyGit is modified from kaleidot725's text-editor-compose(LICENSE)
The Log class MyLog
changed from: changyiqiang's blog
The MIMEType
related util classes copied from ZhangHai's Material Files(LICENSE)
The function FsUtil.openFileEditFirstIfFailedThenTryView()
origin version copied from MGit FsUtil.openFile()(LICENSE)
The PermissionUtils
copied from Neo-Backup PermissionUtils class(LICENSE)