Comment by zahlman
3 months ago
> The "move a branch" command is `git push .`. Yes, you can push to the current repo.
Wouldn't that copy a branch rather than moving it?
3 months ago
> The "move a branch" command is `git push .`. Yes, you can push to the current repo.
Wouldn't that copy a branch rather than moving it?
"move a branch" means changing the commit the branch points to. `git push . $sha:$branch` will update $branch to point to $sha (you'll probably want to force this, unless you're just fast-forwarding the branch).