6
How do I fork a project at a given point?
(lemmy.world)
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Resources
Rules
Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
That makes sense. I'll amend my comment.
Couldn't you also git checkout -b hash for the same result, then fork with the new branch?
Or are the results different in some way?
Sure that works too, though you would likely need to configure your git forge to treat that new branch as the master branch. A branch is ultimately just a pointer to a particular commit, though usually git forges treat one particular branch as "special" (it's the default branch used for clones, and typically disallows direct pushes). This is usually the master or main branch. So my
git resetsuggestion was intended to reset whatever the default branch of the upstream repo was (probably master).