Skip to content
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

git-snapshot shell script suggestion #29

Open
xim opened this issue Nov 7, 2022 · 0 comments
Open

git-snapshot shell script suggestion #29

xim opened this issue Nov 7, 2022 · 0 comments

Comments

@xim
Copy link
Contributor

xim commented Nov 7, 2022

There's a suggestion to add git stash && git stash apply to cron in https://jwiegley.github.io/git-from-the-bottom-up/4-Stashing-and-the-reflog.html

That's probably not a great idea. It'll trigger "files have changed" prompts in editors, fill your stash list with garbage. and might hit races is you're writing or compiling code while the cron job hits.

If you really wanted to do something like this, you probably want to make your own copy of the index in order to commit the changes to a local branch or something.

But I'd suggest just dropping the final line of that section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant