Given a git repository contained in the folder foo, if (from this folder) the command git worktree add ../foo-worktree-otherbranch otherbranch is executed, a worktree will be created for the otherbranch branch in the folder ../foo-worktree-otherbranch (relative to the foo folder).
When editing a file within the foo-worktree-otherbranch folder, and attempting to use git-link, the error Remote 'origin' not found occurs. Instead, git-link should be able to correctly identify the remote and branch. In the particular case this was tested under, the foo repository didn't even have an origin remote (but did have other remotes).
Given a git repository contained in the folder
foo, if (from this folder) the commandgit worktree add ../foo-worktree-otherbranch otherbranchis executed, a worktree will be created for theotherbranchbranch in the folder../foo-worktree-otherbranch(relative to thefoofolder).When editing a file within the
foo-worktree-otherbranchfolder, and attempting to usegit-link, the errorRemote 'origin' not foundoccurs. Instead,git-linkshould be able to correctly identify the remote and branch. In the particular case this was tested under, thefoorepository didn't even have anoriginremote (but did have other remotes).