Y
Hacker News
new
|
ask
|
show
|
jobs
by
karatinversion
521 days ago
You are looking for
git update-ref <branch-name> <commit-sha>
1 comments
DiggyJohnson
521 days ago
Wouldn't the fail or break under any circumstance where they don't immediately share a history?
link
karatinversion
518 days ago
I just tested it by creating a repo with two branches without a common ancestor, and I was able to move a branch pointer to either history with update-ref, so no, I don't think so
link