Skip to content

Instantly share code, notes, and snippets.

Avatar

max-hk

View GitHub Profile
@max-hk
max-hk / git-prompt.sh
Last active Mar 4, 2020
VS code theme Linux-style git bash
View git-prompt.sh
# %programfiles%\Git\etc\profile.d\git-prompt.sh
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
fi
if test -f ~/.config/git/git-prompt.sh
then
. ~/.config/git/git-prompt.sh
@max-hk
max-hk / git_command.md
Last active Mar 5, 2020
Useful git commands
View git_command.md

Useful git commands

A collection of useful git commands

Delete commit

CAUTION: git reset --hard will delete all local changes

Delete commit