Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
karatinversion
10 months ago
|
parent
|
context
|
favorite
| on:
Oh Shit, Git?
You are looking for
git update-ref <branch-name> <commit-sha>
DiggyJohnson
10 months ago
[–]
Wouldn't the fail or break under any circumstance where they don't immediately share a history?
karatinversion
10 months ago
|
parent
[–]
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: