Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

clear git bash command history

User@Computer MINGW64 ~
$ echo $HISTFILE
- sample output -
/c/Users/<username>/.bash_history

User@Computer MINGW64 ~
$ rm /c/Users/<username>/.bash_history

User@Computer MINGW64 ~
$ history -c
Source by www.shellhacks.com #
 
PREVIOUS NEXT
Tagged: #clear #git #bash #command #history
ADD COMMENT
Topic
Name
2+8 =