@rastinza I do some work like you describe, and I don’t know how I’d live without git. the version control is one thing, but to address your issue, it’s extremely easy to synchronize between different copies of local repositories once your git repo is hosted somewhere
the general workflow is as follows…
ssh
to your compute server or similarthis works very easily for a single developer, but also scales to more complex cases where multiple folks are contributing to the code
you also get all the version control benefits of being able to see when exactly which changes were made and revert things if need be. commit messages are also great to leave your future self a comment as to why you made a certain change
there’s a learning curve with git, but only minimal knowledge is needed to get started and see the benefit, so I can definitely recommend getting familiar with git!
@rastinza ah ok I was telling you what you already know 😂 sorry!
I haven’t used git hooks before but it sounds like they fit your case well, and I’ll have to remember to check them out for myself too 🤭 hope it works out!
@freeDomForTooting Thanks, I do use git already.
When I write large software I of course have a repository.
My problem here is with small little scripts of some 20-30 lines that I need as utilities to perform several operations.
In this case the most important thing to me is that it should be quick to edit the behavior and immediately run it, I don’t want to have to perform several different operations before I can actually run the script, in this case these would be:
Which is a bit too much in my opinion, and at that point I’ll just write my stuff in vim on the server.
Someone mentioned git hooks, and that looks like a great solution though.