Skip to content

git-snapshot shell script suggestion #29

@xim

Description

@xim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions