Occasionally, and probably against better practice, it's necessary to force a checkout of branch. Doing so, necessarily overwrites any changes in the currently checked-out branch, but so be it.
Using git it's done like this:
The "-f" part is the "force" option. Using "--force" instead does the same thing.
Why would one do this? If for no other reason, than because it may just be easier to stomp on the changes in one branch than to resolve the conflict.
Using git it's done like this:
git checkout -f BRANCHNAME
The "-f" part is the "force" option. Using "--force" instead does the same thing.
Why would one do this? If for no other reason, than because it may just be easier to stomp on the changes in one branch than to resolve the conflict.
Comments
Post a Comment