Skip to content

Instantly share code, notes, and snippets.

View CaptainOfFlyingDutchman's full-sized avatar
🏗️
Building Josys Microfrontends

Will Turner CaptainOfFlyingDutchman

🏗️
Building Josys Microfrontends
View GitHub Profile
@CaptainOfFlyingDutchman
CaptainOfFlyingDutchman / partial-clone.md
Created June 23, 2025 05:45 — forked from danuw/partial-clone.md
Cloning a subfolder from git to the local machine

Partial cloning of a repository with Git

To efficiently clone only a specific subset of a large Git repository, you can use sparse checkout. This approach is useful when you don't need the entire repository content, saving both time and storage. Below is a step-by-step guide to achieving this.

I have been trying to make sparse checkout work for a while and the following solution has finally worked. https://askubuntu.com/a/1464994/1928663

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@CaptainOfFlyingDutchman
CaptainOfFlyingDutchman / ConEmu Git Bash.md
Last active September 17, 2017 18:24 — forked from n3dst4/ConEmu Git Bash.md
My ConEmu / Cmder git bash task config
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

      /icon "C:\Program Files\Git\mingw64\share\git\git-for-windows.ico"
    
  6. Command:

@CaptainOfFlyingDutchman
CaptainOfFlyingDutchman / OpenWithSublimeText3.bat
Created October 11, 2016 17:34 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f