Fixing Hugo Gallery and updating a Git Submodule

# fixing a submodule $ git submodule update --remote --merge I use the Hugo gallery theme It broke on my britishbogroll gallery which I think is due to an update to sasl which resizes/processes images and an obsolete reference. After a certain amount of faffing I re-pulled my repo and updated the git submodule - the theme which fixed it. As there are quite lot of pictures you sometimes have to be patient to alow Hugo to rebuild it which is probably how I broke it before. [Read More]
hugo  git 

Missing Git Submodules?

Here’s something I stumble over almost every time I clone a git repository with submodules. Those darn folders are empty and using the project fails. Here are two ways to fix that: Clone With The Recursive Flag When issuing your git clone, add a --recursive flag. It will look like this: $ git clone git@github.com:user/project.git --recursive And as easy as that, your submodules are there. If you cloned your repo and don’t mind starting over - delete the freshly cloned repository and add that --recursive to the command. [Read More]

Using multiple github accounts with ssh keys

Using multiple github accounts with ssh keys. Generate ssh key pairs for accounts and add them to GitHub accounts. Edit/Create ssh config file (~/.ssh/config): # Default github account: oanhnn Host github.com HostName github.com IdentityFile ~/.ssh/oanhnn_private_key IdentitiesOnly yes # Other github account: superman Host github-superman HostName github.com IdentityFile ~/.ssh/superman_private_key IdentitiesOnly yes NOTE: If you use any account frequently, you should use the default hostname (github.com). Add ssh private keys to your agent: [Read More]
git  ssh  howto