New answers tagged

0 votes

Performing character-level comparison of "strings" without explicitly creating temporary files for git diff

This won't be possible with pipe-based redirection as in your bash's <(). But: with zsh-isms, it should work. There is the temporary file expansion =(): #!/usr/bin/zsh # use zsh instead of bash # ...
sina bala's user avatar
  • 358
0 votes

git pull/push from/to github in VPN does not work

I fixed this by forcing SSH to use IPv4 instead of IPv6. Add this to your .ssh/config file AddressFamily inet Taking from https://stackoverflow.com/questions/21671706/configure-git-to-use-ipv4-...
HarlemSquirrel's user avatar
2 votes
Accepted

How to add an exact-match flag to the following git + sed function?

You have a syntax error in function declaration. Instead of w { ... } you need: w() { ... } Always pass your scripts to https://shellcheck.net before asking help: $ shellcheck file In file line 1: ...
Gilles Quénot's user avatar
0 votes

Git can't run editor but it definitely exists

It turned out that the git install was actually an Apptainer app, so the /usr/bin/nano it is looking for is actually not present in the Apptainer container. Ugh.
Timmmm's user avatar
  • 576

Top 50 recent answers are included