If we understand what files git rebase creates, then we can manually create our own rebase plan.
# Lets check out a branch to work with
git checkout origin/main demo-branch
# and kick off a rebase against root
git rebase -i --root
Read More →
As a developer, I tend to keep all kinds of things beyond just code managed with git.
In the past I have used a ~/.dotfiles repo with multiple symlinks, though there are alternate ways to handle it.
Having remembered that bare repositories and alternate work-trees are a thing, I did a short search before finding a tutorial.
Initially using their example directly, we arrive at commands that look like this.
Read More →
Mostly for scripting reasons and alerting reasons, there are multiple times when I have wanted a simple status of a repository.
When working from the console, there is git-status which shows things in a human parsable format, but for scripts we need something more robust.
We can ue git-status with the –porcelain=2
flag to provide a lot more information, in a more easily machine parsable format.
Seeing how starship
parsed git-status helped me on this path.
Using this information, I wrote my own git-pending command to parse this data, into a form I could script against more easily.
Read More →