This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
git [2014/09/02 18:04] – [Update a submodules repo] admin | git [2017/04/28 14:11] – [Pull] admin | ||
---|---|---|---|
Line 35: | Line 35: | ||
==== Master-Branch hoch schieben ==== | ==== Master-Branch hoch schieben ==== | ||
- | Schiebt die lokale | + | Schiebt die lokale |
git push origin master | git push origin master | ||
Line 54: | Line 54: | ||
Example: | Example: | ||
+ | cd / | ||
git submodule add https:// | git submodule add https:// | ||
git add . | git add . | ||
Line 77: | Line 78: | ||
git commit -am " | git commit -am " | ||
git push origin | git push origin | ||
+ | |||
+ | ===== Pull ===== | ||
+ | |||
+ | git pull origin | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ |