If you already have both Termux with git and Pydroid installed on your system, you can just make them use shared storage.
For example, you can set up Termux shared storage usage via termux-setup-storage
command. It asks you to give the Termux app access to shared part of Android filesystem where folders like Downloads and DCIM reside and creates a link from within Termux $HOME folder to it. You can create a dedicated folder e.g. named "termux_workdir" there and clone or initialize repos into it using git via Termux terminal session.
Then you can save and edit files there via Pydroid "Save as" or "Open" options, for example, picking "termux_workdir" using Android Files app.
For more convenience, you can create a link to this folder from Termux $HOME (for example, cd
without arguments and type ln -s ~/storage/shared/termux_workdir termux_workdir
) and set Pydroid Terminal $HOME also to this folder (it will be /storage/emulated/0/termux_workdir
in my example from Pydroid perspective), that can be made via "Terminal settings" menu.