I think the bonsai git tool needs a command to rename branches, this would be cleaner, you could just create a new branch from a few commits back and call it 'main' instead of deleting commits.
But overwriting the remote repository with push --force can break things for other users in a way that wouldn't be recoverable from within bonsai.
thanks for your help, I will definitely try your suggestions!
I'm quite new to git, so it always takes me some time to make my self familiar with a new workflow, especially when something needs to be done outside of bonsai. I really like IFC git because it gives me the safety of a development history of my modelling. Currently I found out that I accidentally destroyed the spatial sturcture of my file, with just a few clicks I had the last working commit. from my UX point of view I just needed a "undo"-Button for the commit history. probably just because I have almost no experience with git bash, it took me already some hours and I still haven't reverted these 3 commits successfully (needed to configure a username+email, was asked to commit changes from command line and got stuck with setting a name for the revert commit,...). I'm confident that I will figure it out in the end, but I think for other users this process will probably be also a challenge.
@Rio Yeah. Git was created by Linus Torvalds, the creator of Linux. He wrote it to replace a commercial tool he was using to coordinate the contributions from thousands of coders on a multi-million line codebase that was rapidly becoming the critical global IT infrastructure. It's designed by coders, for coders, for coding. If you find git a bit of a struggle, do not worry... it just means you are a normal person :-)
(Ironically that commercial tool, BitKeeper, eventually withered away and disappeared, having been made obsolete by Git.)
Comments
aligns with what i know as well..
https://claude.ai/share/aacc028d-b811-4ca2-8010-3d53e3474129
thanks for the quick response. it would be really nice to have this in the bonsai ui...
I think the bonsai git tool needs a command to rename branches, this would be cleaner, you could just create a new branch from a few commits back and call it 'main' instead of deleting commits.
But overwriting the remote repository with
push --forcecan break things for other users in a way that wouldn't be recoverable from within bonsai.i would also recommend a good git client, if not comfortable with the command line.
https://git-scm.com/tools/guis
thanks for your help, I will definitely try your suggestions!
I'm quite new to git, so it always takes me some time to make my self familiar with a new workflow, especially when something needs to be done outside of bonsai. I really like IFC git because it gives me the safety of a development history of my modelling. Currently I found out that I accidentally destroyed the spatial sturcture of my file, with just a few clicks I had the last working commit. from my UX point of view I just needed a "undo"-Button for the commit history. probably just because I have almost no experience with git bash, it took me already some hours and I still haven't reverted these 3 commits successfully (needed to configure a username+email, was asked to commit changes from command line and got stuck with setting a name for the revert commit,...). I'm confident that I will figure it out in the end, but I think for other users this process will probably be also a challenge.
@Rio Yeah. Git was created by Linus Torvalds, the creator of Linux. He wrote it to replace a commercial tool he was using to coordinate the contributions from thousands of coders on a multi-million line codebase that was rapidly becoming the critical global IT infrastructure. It's designed by coders, for coders, for coding. If you find git a bit of a struggle, do not worry... it just means you are a normal person :-)
(Ironically that commercial tool, BitKeeper, eventually withered away and disappeared, having been made obsolete by Git.)