git_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git_notes [2023/03/28 15:14] – [git commands usage] raju | git_notes [2023/05/05 14:55] (current) – [dokuwiki table syntax] admin | ||
---|---|---|---|
Line 74: | Line 74: | ||
< | < | ||
git grep -i --all-match -e ' | git grep -i --all-match -e ' | ||
+ | </ | ||
+ | |||
+ | ==== Count number of lines in a file but exclude blank lines ==== | ||
+ | < | ||
+ | git grep -e " | ||
+ | </ | ||
+ | |||
+ | For example: | ||
+ | < | ||
+ | $ git grep -e " | ||
+ | 27 | ||
+ | </ | ||
+ | |||
+ | ===== Commits related ===== | ||
+ | ==== amend last commit ===== | ||
+ | |||
+ | < | ||
+ | export EDITOR=vim | ||
+ | git commit --amend --author=" | ||
+ | git config user.email " | ||
+ | |||
+ | git config --get-all --show-scope user.email | ||
+ | git config --get-all --show-origin user.email | ||
</ | </ | ||
git_notes.1680016473.txt.gz · Last modified: 2023/03/28 15:14 by raju