jtdp

Ideas, snippets and randomness.

Git Cheatsheet

Random git snippets to make my life easier.

Adding a submodule to a git repository

Cloning a git repository with submodules

Git remove file but keep local copy.

Note that when other repository clones pull from the same remote, their local copy of the file will be deleted unless they have modified it.

Revert file permission changes in local git repository

Very useful when you change permissions due to working on a samba share. Lifted from Stack Overflow

See changes before pulling from remote git repository

Change remote url of git repository

SSL Certificate Verification

If you get the error: SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing… you need to set GIT_SSL_NO_VERIFY to true.