-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: git support and git init #66
Conversation
I've thought about this for a few days, and I'm not really convinced it's a good idea. I do see how using notes with git could be useful, but I think that either you can use git manually as normal, with no changes needed here, or notes should manage it for you automatically. Here we're in an odd middle ground, where notes doesn't help you with git, but you call git through it all the time. I've written some thoughts on this before over here that might be of interest: #12 (comment). It looks like the main benefit this provides at the moment is that it passes the notes directory as I don't think we should add a wrapper to notes for every command that you might want to run in your notes directory. We could potentially provide a generic helper though... How would you feel about something like |
Hi, thanks for review of my pull request.
Ok no problem
I read all now, sorry for not do it before.
Other benefits: the notes init part; but yeah maybe you are right about this.
Right, but git is the best option to backup your notes and share it across device, different by importance from other type of command wrapper.
But how do you implement this? Thanks and sorry for my bad english. |
Autocommit would be interesting, if you'd like to have a go! It's not super easy, but I think it would be popular. Do make sure you read the other thread carefully first though, because it's important to do it well.
I don't think I agree. I don't think manually adding, committing, pushing & pulling every change to your notes files is common. Instead, most users use one of the many tools like Dropbox/Google Drive/Spider Oak/OwnCloud/etc which do automatic versioning & sync. And on the other hand, I can think of many other great use cases that a more generic run command would help with, plus it allows for lots of other new ideas that I haven't thought of.
Could you be more specific please? Why don't you like this?
I don't think this is a concern. Users have to manually run the command themselves, and it's not any more dangerous than any other command you may run on your command line. I don't think it's very different - any risky command run with |
Checklist
Short description of what this PR does: