Changes between Version 12 and Version 13 of notes/git


Ignore:
Timestamp:
2021-01-19T05:47:05Z (4 years ago)
Author:
root
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • notes/git

    v12 v13  
    7777 - add resulting commit on top of target branch;
    7878- rebase ant merge: add all commits from source branch on top of target branch
     79
     80[[br]]
     81
     82== submodules
     83=== add
     84{{{#!bash
     85smp='ansible/roles/external/nginx-install';
     86git submodule add [email protected]:nginxinc/ansible-role-nginx.git ${smp}
     87git submodule set-branch --branch tags/0.19.1 -- ${smp}
     88git add .gitmodules
     89(cd ${smp} && git checkout tags/0.19.1)
     90}}}
     91
     92=== remove
     93{{{#!bash
     94git submodule deinit -f ${smp}
     95git add .gitmodules
     96git reset HEAD -- ${smp}
     97git rm -f ${smp}
     98rm -rf .git/modules/${smp} ${smp}
     99}}}