Skip to content

Conversation

@davidkopp
Copy link
Owner

We need to use the shared storage so Android apps will be able to access the folder of the git repository. However, using the shared storage has also some disadvantages. See the Termux Wiki page Internal and external storage for more information. I personally had the issue that Git was only able to execute one command on a git repository located on the shared storage and the following commands failed with an error

Unable to read current working directory: No such file or directory

A solution could be to use Git worktree. That means we place the git repository in the local Termux storage as a bare repository without a worktree (only the .git folder) and place the worktree in the shared storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants