Skip to content

Use Git worktree #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Use Git worktree #5

wants to merge 2 commits into from

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.

1 participant