git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
git [2019/08/16 10:26] – created tmaiergit [2020/12/29 02:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Git ====== ====== Git ======
 +===== Aliases =====
 +
 <code> <code>
 git config --global user.name "<full name>" git config --global user.name "<full 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
 +</code>
 +
 +===== Credential Helper for HTTPS Upstreams =====
 +
 +  - Go to the Git repository folder
 +  - ''git config credential.helper store''
 +  - Credentials are stored when the user logs in the next time
 +
 +===== Submodules =====
 +==== Add submodule ====
 +<code>
 +git clone git@github.com:thomai/submodule-main.git
 +cd submodule-main
 +git submodule add git@github.com:thomai/submodule-test1.git
 +git submodule add git@github.com:thomai/submodule-test2.git
 +git add .
 +git ci -m "Added submodules"
 +</code>
 +
 +==== Update submodule to latest commit on branch ====
 +<code>
 +cd submodule-main
 +cd submodule-test1
 +git pull
 +cd ../
 +git add .
 +git ci -m "Updated submodule-test1"
 +git push
 +</code>
 +
 +==== Clone repository recursively ====
 +<code>
 +git clone --recurse-submodules git@github.com:thomai/submodule-main.git
 </code> </code>
  • git.1565944010.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)