Skip to content

Instantly share code, notes, and snippets.

@jkbnerad
Last active March 2, 2017 14:24
Show Gist options
  • Save jkbnerad/ae7c1c9c4435698c1eb778d39eafaac4 to your computer and use it in GitHub Desktop.
Save jkbnerad/ae7c1c9c4435698c1eb778d39eafaac4 to your computer and use it in GitHub Desktop.
Prakticke GIT prikazy

ukecanejsi log (v jakych souborech doslo ke zmenam)

git log --stat

hodne ukecany log, hlavne tam mam autora a cas commitu (koukam do toho, kdyz se neco rozbilo a hledam vinika :-))

git config --global alias.lg 'log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit'

vysisteni netrekovanych souboru a adresaru

git clean -f -d

smazani souboru / adresaru co splnuji .gitignore (!!! pozor, muze vas to dost rozesmutnet)

git clean -X -f

zmena default editoru

git config --global core.editor '$EDITOR'

vypsani vsech aliasu

git config -l | grep alias | cut -d '.' -f 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment