Skip to content

Instantly share code, notes, and snippets.

Splitting a sub-dir to a git repo

To split a large repo:

Create a branch that will hold only changes to the subtree you want to make a new repo out of:

cd $OLDREPODIR
git subtree split --prefix=dirname/to/separate/to/new/repo --branch split-branch-name
@tehmul
tehmul / msys2-here-install.reg
Last active August 28, 2017 05:35
msys2 #git #msys2
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS2 here\command]
@="C:\\msys64\\msys2.exe bash"
[HKEY_CLASSES_ROOT\Folder\shell\MSYS2 here\command]
@="C:\\msys64\\msys2.exe bash"
@tehmul
tehmul / .editorconfig
Last active August 25, 2018 01:03
editorconfig
# This is the top-most .editorconfig file; do not search in parent directories.
root = true
[*]
end_of_line = LF
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2