3 ms·
This might be a little off topic but I'm curious how could somebody accidentally (or why would somebody intentionally) push .bash_history to GitHub?
by songgao 14y ago
This might be a little off topic but I'm curious how could somebody accidentally (or why would somebody intentionally) push .bash_history to GitHub?
- gojomo 14y agoThere are some tasks I do infrequently enough I can't remember the paths, commands, and options... but my history always saves me. So when I know it's full of useful stuff, and especially when moving a bunch of files/functionality to a new place, I tend to create a copy of my .bash_history in another, non-hidden file. Of course such renamed files wouldn't have been part of this analysis, so it doesn't exactly explain why files exactly named .bash_history are in Github. (For that, I'd surmise many people make an entire project-specific login directory git-versioned.) But it does hint why someone might intentionally want to remember their history in version control. Done intentionally, it strikes me as a potentially valuable reproducibility, auditing, and training practice – documenting what was done around the time of other file evolution, making it easier for someone else to help out in a pinch with full context.
- damncabbage 14y agoVersioning their home directories to git, and doing it in-place instead of linking specific files from a ~/.dotfiles or similar. (See https://github.com/technicalpickles/homesick https://github.com/technicalpickles/homesick for an example of how to do it right.)