How to not make Git for Windows write entire script data into .bash_history? #5816
veda-tschoening
started this conversation in
General
Replies: 1 comment
-
The following reads like NOT forwarding the argument
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have multiple different scripts imeplemented in Bash and executed in Windows using Windows Explorer, but simply double-clicking the file or using the context menu and then "Open with...". Just recently I recognized that after the executed script finished,
.bash_history
gets created or updated with the content of the script 1:1. Which makes that history file practically useless when used in any Git Bash interactive shell.The following is the command registered in Windows, though am not sure if that was created automatically or adapted manually already be me... But I don't see any commandline argument to prevent Git writing the history at all, which seems OK in this case as well.
Is there any way to prevent that behaviour? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions