This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git [2017/04/28 12:07] – [Master-Branch hoch schieben] admin | git [2021/01/19 22:58] (current) – [Git Changelog] admin | ||
|---|---|---|---|
| Line 83: | Line 83: | ||
| git pull origin | git pull origin | ||
| git submodule update | git submodule update | ||
| + | |||
| + | ====== Change git Author ====== | ||
| + | |||
| + | <code bash git.sh> | ||
| + | #!/bin/sh | ||
| + | |||
| + | git filter-branch -f --env-filter ' | ||
| + | |||
| + | OLD_EMAIL=" | ||
| + | CORRECT_NAME=" | ||
| + | CORRECT_EMAIL=" | ||
| + | |||
| + | if [ " | ||
| + | then | ||
| + | export GIT_COMMITTER_NAME=" | ||
| + | export GIT_COMMITTER_EMAIL=" | ||
| + | fi | ||
| + | if [ " | ||
| + | then | ||
| + | export GIT_AUTHOR_NAME=" | ||
| + | export GIT_AUTHOR_EMAIL=" | ||
| + | fi | ||
| + | ' --tag-name-filter cat -- --branches --tags | ||
| + | </ | ||
| + | |||
| + | ====== Git Changelog ====== | ||
| + | |||
| + | Generate a simple changelog of all commits between latest 2 tags. | ||
| + | |||
| + | <code bash> | ||
| + | # | ||
| + | |||
| + | TAGS=($(git tag --sort=-version: | ||
| + | git log --pretty=format:" | ||
| + | </ | ||
| + | |||
| + | |||