Just some tips I found useful

Git

Git option(s) or trick(s)

Request with self-signed SSL Certificate

git clone https://URL_TO_GIT_PATH.git -c http.sslverify=false 

Using http certificate

git clone https://<URL>/<PATH>/<REPO>.git -c http.sslcert=<PATH TO PEM FILE> -c http.sslkey=<PATH TO KEY FILE> -c http.sslVerify=false

In .git/config:

[http]
    sslcert=<path to pem file>
    sslkey=<path to key file>
    sslVerify=False

Request few history as possible

git clone https://URL_TO_GIT_PATH.git --depth 1

Download partial git repository:

Replace the URL (tree/master by trunk):

https://github.com/lodash/lodash/tree/master/test ->
https://github.com/lodash/lodash/trunk/test  

Then call svn (this could take 30sec):

svn checkout https://github.com/lodash/lodash/trunk/test

Break previous commit into multiple commits

$ git rebase -i HEAD~3 # this is an example ofc or git rebase -i <hash>~ (~ for reapply commits on top of the previous commit of <hash>)
 

Replace pick by edit, then

$ git reset HEAD~

Commit what you have to commit then finally

$ git rebase --continue
Last updated on Monday, May 11, 2020
Published on Monday, May 11, 2020