Skip to main content
4 votes
1 answer
106 views

My intention is to locate the "root" .git/ directory of my current repo, meaning: if I currently am in a worktree, I want the .git/ directory of the source repo, not the one dedicated to my ...
LeGEC's user avatar
  • 53.5k
0 votes
2 answers
115 views

I'm encountering a peculiar issue when using Python's exec function within scripts that are run across different Git worktrees. Specifically, I've observed that the behavior of exec (and by extension, ...
user avatar
2 votes
1 answer
73 views

I have a project where I have checked out the main branch, which has 2 submodules: vendor/foo and vendor/bar. If I create a worktree for a feature branch with git worktree add ../feature feature, this ...
krzysz00's user avatar
  • 2,153
0 votes
1 answer
143 views

Interesting pre data: I had no problem debugging in cursor before I created a git worktree of my repo Issue Details: After creating a git worktree I now how a separate .venv in both worktrees I ...
Levi.out's user avatar
1 vote
0 answers
59 views

I’m trying to avoid having each worktree of my super-repo clone its submodules over and over. Instead I’d like each submodule directory in every worktree to be just another linked worktree of a single ...
Кое Кто's user avatar
0 votes
0 answers
78 views

I have a bare repo and a worktree associated with it. Ran git lfs install, setup some lfs filters then ran git lfs pull and the lfs files appear as modified. From what I understood the step that makes ...
Ivan Rovelov's user avatar
0 votes
0 answers
49 views

If I run git branch, I will see output that looks like this: + branch1 * branch2 branch3 + branch4 branch5 The output tells me visually which branches are checked out, but I would need to do ...
merlin2011's user avatar
  • 76.6k
0 votes
1 answer
109 views

Am implementing a git-based dotfile version control system. An alias setting --work-tree=$HOME does not encounter any problems. alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --...
gskrr's user avatar
  • 1
0 votes
2 answers
2k views

I've been using git worktree for a long time, but I just realized an issue with hooks. It always seems to run hooks from the main worktree and never ones specific to the current work tree. Is there a ...
Andrew's user avatar
  • 583
0 votes
1 answer
154 views

I'm lookng into git worktrees b/c I want to work on multiple branches at once. Did the following setup # Created new E:\ partion cd /d E: mkdir repos cd repos git clone --bare <repository-url>/...
joseville's user avatar
  • 1,023
4 votes
1 answer
1k views

I have uncommitted and staged changes in my main branch. I want to put those existing changes in a different worktree, so that my main branch/folder stays clean. How do I do that? I've tried ...
poignantpinata's user avatar
1 vote
1 answer
229 views

Let's say I'm inside a Git repo with worktrees. Given a branch name, how can I find out if this branch is checked out in a worktree, and if so, the path to this worktree? P.S. this is for a script, I ...
Jordan Barrett's user avatar
1 vote
1 answer
137 views

I have a batch file I use to maintain drive letters for local paths. As these are volatile I have them saved to a txt file that gets read when I boot up my machine. This lets me have local "...
flyingblindonarocketcycle's user avatar
1 vote
0 answers
102 views

I have a git repository that I would like to reuse in another project as a library. So I have this kind of library (Lib A) that has quite a lot of branches for different configurations and I want to ...
Daniel's user avatar
  • 71
1 vote
1 answer
558 views

I'm using git-subrepo. I've created a git subrepo branch and when I run git branch it outputs something like this: $ git branch * master + subrepo/CurriculumVitae What's the meaning of that + symbol? ...
Alberto López's user avatar

15 30 50 per page
1
2 3 4 5
11