git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git [2018/08/13 15:24] – [Pretty Log Alias] thekojukinator | git [2019/05/08 16:08] (current) – [PowerShell Visual Studio Code Template] thekojukinator | ||
---|---|---|---|
Line 35: | Line 35: | ||
</ | </ | ||
+ | A complementary setting in //Visual Studio Code// when developing on Windows is to enforce CRLF. | ||
+ | |||
+ | <code css settings.json> | ||
+ | { | ||
+ | // this assumes Windows dev environment with Git config option " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
==== Pretty Log Alias ==== | ==== Pretty Log Alias ==== | ||
Line 56: | Line 64: | ||
# but, this will disable pagination for all calls to ' | # but, this will disable pagination for all calls to ' | ||
git config --global pager.log false | git config --global pager.log false | ||
+ | |||
+ | # I've recently discovered some prettier log outputs, so my .gitconfig aliases are like so... | ||
+ | hist = log --graph --abbrev-commit --decorate --format=format:' | ||
+ | hist1 = log --graph --abbrev-commit --decorate --format=format:' | ||
+ | hist2 = log --pretty=format:' | ||
+ | # first two are courtesy of https:// | ||
</ | </ | ||
Line 544: | Line 558: | ||
!*/ | !*/ | ||
- | # allow .gitignore | + | # allow .git* at top level |
- | !.gitignore | + | !.git* |
- | # whitelist these file types everywhere | + | # allow .md at top level |
- | !**/*.ps1 | + | !*.md |
- | !**/*.psm1 | + | |
- | !**/*.psd1 | + | # whitelist VSCode settings at the top level |
- | !**/*.xml | + | !/.vscode/ |
+ | |||
+ | # whitelist contents of these folders at the top level | ||
+ | !/ | ||
+ | |||
+ | # regardless of above, ignore these folders and files everywhere | ||
+ | **/_logs* | ||
+ | **/_testing* | ||
- | # regardless of above, ignore ' | ||
- | **\.vscode/ | ||
</ | </ | ||
git.1534188288.txt.gz · Last modified: 2018/08/13 15:24 by thekojukinator