Changes between Version 12 and Version 13 of notes/git
- Timestamp:
- 2021-01-19T05:47:05Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
notes/git
v12 v13 77 77 - add resulting commit on top of target branch; 78 78 - rebase ant merge: add all commits from source branch on top of target branch 79 80 [[br]] 81 82 == submodules 83 === add 84 {{{#!bash 85 smp='ansible/roles/external/nginx-install'; 86 git submodule add [email protected]:nginxinc/ansible-role-nginx.git ${smp} 87 git submodule set-branch --branch tags/0.19.1 -- ${smp} 88 git add .gitmodules 89 (cd ${smp} && git checkout tags/0.19.1) 90 }}} 91 92 === remove 93 {{{#!bash 94 git submodule deinit -f ${smp} 95 git add .gitmodules 96 git reset HEAD -- ${smp} 97 git rm -f ${smp} 98 rm -rf .git/modules/${smp} ${smp} 99 }}}