We'll now experiment with various commands which form a basic workflow
After each step view the status with git status
# 1. create a file with content
while ! git rebase --continue; do | |
git diff --name-only --diff-filter=U | while read file; do | |
# Apply 'ours' (current changes from HEAD) first | |
git checkout --ours "$file" | |
# Then apply 'theirs' (incoming changes) | |
git checkout --theirs "$file" | |
.gist-meta { | |
display: none; | |
} | |
@media (prefers-color-scheme: dark) { | |
.gist { | |
filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2); | |
} | |
} |
function gxo() { | |
local branches branch | |
branches=$(git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)') || return | |
# Add a separator and then list all branches | |
branches="$branches"$'\n'"$(git branch --all | grep -v '\->' | sed 's/^[* ]*//')" || return | |
# Use fzf to select a branch + added useless but cool looking graph | |
branch=$(echo "$branches" | fzf --height 40% --border --preview 'git log --oneline --graph --decorate --color=always {}') || return |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Test Current File", | |
"type": "debugpy", | |
"request": "launch", | |
"module": "pytest", | |
"args": [ | |
"${file}", |
{ | |
//_____DEBUGGING | |
"debug.console.fontFamily": "'jetbrains mono', monospace", | |
"debug.console.fontSize": 14, | |
//_____TERMINAL | |
"terminal.explorerKind": "both", | |
"terminal.integrated.enableMultiLinePasteWarning": "auto", | |
"terminal.integrated.fontFamily": "'jetbrains mono', monospace", |
class Foo: | |
a = 1 | |
class Bar(Foo): | |
b = 2 | |
class Baz(Foo): | |
c = 3 |