User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git [2019/11/18 22:55]
git [2020/09/10 20:39] (current)
hanez [Git Notes]
Line 1: Line 1:
 ====== Git Notes ====== ====== Git Notes ======
-Specify the private SSH-key to use when executing a Git command:+===== Specify the private SSH-key to use when executing a Git command: =====
   ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git $GIT_COMMAND'   ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git $GIT_COMMAND'
Line 9: Line 9:
   ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git push'   ssh-agent bash -c 'ssh-add /home/git/.ssh/key-filename; git push'
-[[]]+Source: [[]]
 +===== Remove submodule =====
 +0. mv a/submodule a/submodule_tmp
 +1. git submodule deinit -f -- a/submodule    
 +2. rm -rf .git/modules/a/submodule
 +3. git rm -f a/submodule
 +# Note: a/submodule (no trailing slash)
 +# or, if you want to leave it in your working tree and have done step 0
 +3.   git rm --cached a/submodule
 +3bis mv a/submodule_tmp a/submodule
 +Source: [[]]
git.1574117717.txt.gz ยท Last modified: 2019/11/18 22:55 by hanez