import recipes: todo add to site
This commit is contained in:
parent
3e4932f921
commit
33de49464e
10 changed files with 160 additions and 0 deletions
24
todo-recipes/git.md
Normal file
24
todo-recipes/git.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# git
|
||||
|
||||
everyone's favourite VCS
|
||||
|
||||
## what's going on between these two branches
|
||||
|
||||
relevant: `man gitrevisions`
|
||||
|
||||
### print commits in develop but not in main
|
||||
|
||||
```
|
||||
git log origin/main..origin/develop
|
||||
```
|
||||
|
||||
## git reset --hard a directory
|
||||
|
||||
[source](https://stackoverflow.com/a/15404733)
|
||||
|
||||
```
|
||||
git restore --source=HEAD --staged --worktree -- aDirectory
|
||||
# or, shorter
|
||||
git restore -s@ -SW -- aDirectory
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue