Closed perlpunk closed 5 years ago
gh-pages: git clone $$(git config remote.origin.url) -b $@ $@
This doesn't work for me. Same with target data. I don't have a remote called origin. I rename the author remote to author whenever I do a fork
data
origin
author
@sigmavirus24 suggested this: git config --get branch.<branch-name>.remote to get the remote name. So something like this:
git config --get branch.<branch-name>.remote
remote=$(git config --get branch.master.remote) url=$(git config remote.$remote.url) git clone $url -b $@ $@
For what it's worth, I got the idea for looking at
git config --list | grep branch
Fixed via commit 38fd62f (using git worktree instead of clone)
git worktree
clone
This doesn't work for me. Same with target
data
. I don't have a remote calledorigin
. I rename the author remote toauthor
whenever I do a fork@sigmavirus24 suggested this:
git config --get branch.<branch-name>.remote
to get the remote name. So something like this: