Block a user
How do I find all files that do *not* match a pattern?
How do I find all files that do *not* match a pattern?
Use the -not with find.
find . -not -name "*.json"
I used this to count the number of images (roughly) in a Google Takeout:
find . -not -name "*.json"
How do I find all files that do *not* match a pattern?
How do I manage multiple branches with
git worktree in a git repository?
How do I manage multiple branches with
git worktree in a git repository?
Git worktrees are great for this:
Assuming that the repository is at <path>/main, do something like this:
git worktree add -b <branch_name> ../<folder_name> HEAD
This puts a…
How do I manage multiple branches with
git worktree in a git repository?
How do I create a worktree from an existing remote branch?
How do I create a worktree from an existing remote branch?
TL;DR: you probably wanted git worktree add ../BRANCH BRANCH
But, really, it looks like this is the best option:
git worktree add ../PATH --checkout BRANCH
I don't have a…
How do I create a worktree from an existing remote branch?
How do I disable git commit signing on a per-repository basis?
How do I disable git commit signing on a per-repository basis?
git config --local commit.gpgsign false
How do I disable git commit signing on a per-repository basis?
How do I fetch all branches?
How do I fetch all branches?
This will want to be expanded over time. The short version might be:
git fetch --all
git pull --all
to just get the references, but it might be necessary to do:
git…
How do I fetch all branches?
What do I do about
module collections errors with pipenv install?
What do I do about
module collections errors with pipenv install?
This worked:
remove pipenv if you have installed it using apt
sudo apt remove pipenv
install pipenv unsing pip
pip3 install pipenv
activate virtual environment
pytho…
What do I do about
module collections errors with pipenv install?