first commit

This commit is contained in:
Marvin Preuss 2022-08-23 15:46:16 +02:00
commit bf0abe3a2a
4 changed files with 58 additions and 0 deletions

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# til
_Inspired by [jbranchaud/til](https://github.com/jbranchaud/til)_
## Categories
- [git](./git/)
- [neovim](./neovim/)
---
### git
- [clone to worktree](./git/clone-to-worktree.md)
### neovim
- [debug what code set last filetype settings](./neovim/debug-what-code-set-last-filetype-settings.md)
- [netrw](./neovim/netrw.md)

17
git/clone-to-worktree.md Normal file
View File

@ -0,0 +1,17 @@
# Clone to worktree
Git branches is like an antipattern.
Its best to use `git worktree` to have already checked out git branches.
## Cloning
git clone https://git.xsfx.dev/xsteadfastx/til.git til/main
This will create the directory `til` and clones the branch `main` into it.
## Create new worktree
cd til/main
git worktree add ../foo main
This will create the worktree `foo` in `til/foo`.

View File

@ -0,0 +1,3 @@
# Debug what code set last filetype settings
:verbose set ft

19
neovim/netrw.md Normal file
View File

@ -0,0 +1,19 @@
# netrw
`netrw` is a simple file and directory browser for vim.
## Opening netrw
:Explore
## Create file
%
## Create directory
d
## Remove directory or file
D