Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| git [2019/08/16 10:26] – created tmaier | git [2020/12/29 02:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Git ====== | ====== Git ====== | ||
| + | ===== Aliases ===== | ||
| + | |||
| < | < | ||
| git config --global user.name "< | git config --global user.name "< | ||
| Line 7: | Line 9: | ||
| git config --global alias.ci commit | git config --global alias.ci commit | ||
| git config --global alias.st status | git config --global alias.st status | ||
| + | </ | ||
| + | |||
| + | ===== Credential Helper for HTTPS Upstreams ===== | ||
| + | |||
| + | - Go to the Git repository folder | ||
| + | - '' | ||
| + | - Credentials are stored when the user logs in the next time | ||
| + | |||
| + | ===== Submodules ===== | ||
| + | ==== Add submodule ==== | ||
| + | < | ||
| + | git clone git@github.com: | ||
| + | cd submodule-main | ||
| + | git submodule add git@github.com: | ||
| + | git submodule add git@github.com: | ||
| + | git add . | ||
| + | git ci -m "Added submodules" | ||
| + | </ | ||
| + | |||
| + | ==== Update submodule to latest commit on branch ==== | ||
| + | < | ||
| + | cd submodule-main | ||
| + | cd submodule-test1 | ||
| + | git pull | ||
| + | cd ../ | ||
| + | git add . | ||
| + | git ci -m " | ||
| + | git push | ||
| + | </ | ||
| + | |||
| + | ==== Clone repository recursively ==== | ||
| + | < | ||
| + | git clone --recurse-submodules git@github.com: | ||
| </ | </ | ||