The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘git’ Category

git on Windows: figuring out SID mismatch

Posted by jpluimers on 2025/03/31

A few years back I had an error happen a while on one of my Windows machines after a git pull: fatal: detected dubious ownership in repository at 'C:/versioned/repository' followed by a few lines with Windows SIDs (Security Identifiers) that I had to map to actual users.

I thought I had it scheduled, but my notes were in a draft post, so when I bumped into it again when upgrading an old virtual machine with new versions I finished it and scheduled it for now.

The first time I got the error was after git for Windows fixed security vulnerability [Wayback/Archive] CVE-2022-24765 and included the quote fromย [Wayback/Archive] Uncontrolled search for the Git directory in Git for Windows ยท Advisory ยท git-for-windows/git:

Read the rest of this entry »

Posted in CommandLine, Development, DVCS - Distributed Version Control, git, Power User, PowerShell, PowerShell, Scripting, Software Development, Source Code Management, Windows, Windows 10, Windows 11, Windows 7 | Tagged: | Leave a Comment »

GitHub: creating a directory while adding on-line adding a file or uploading file(s)

Posted by jpluimers on 2025/03/20

Since git doesn’t have the notion of directories as entities, neither does GitHub.

This makes it counter-intuitive to add a sub-directory when creating a new file on-line in the GitHub web-UI or uploading file(s) there.

I wanted to do this as instead of taking the local route, it was easier to on-line add and edit [Wayback/Archive] GitHub – jpluimers/https-imgur.com-a-bmw-e61-remote-fix-sWdk0: Content from https://imgur.com/a/bmw-e61-remote-fix-sWdk0 for Wayback Machine archival.

The GitHub web-UI can indeed do this:

Further reading

You can also do this from the git command-line, by adding an empty file in the directory first. By convention, usually a .gitkeep file is used for that though others use .gitignore files for it.

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, GitHub, Software Development, Source Code Management | Tagged: | Leave a Comment »

On my list of thigs to play around with: ISSUE_TEMPLATE and other GitHub templates/settings

Posted by jpluimers on 2025/03/05

Somehow I never consciously thought through how on many GitHub repositories, some of the issue reporting steps started with nice templates.

That is, until I bumped intoย [Wayback/Archive] alfred-my-mind/.github at master ยท nikitavoloboev/alfred-my-mind which has:

  1. a folder [Wayback/Archive] alfred-my-mind/.github/ISSUE_TEMPLATE at master ยท nikitavoloboev/alfred-my-mind with Markdown files for different kinds of issues (bug report, feature request and question).
  2. a file [Wayback/Archive] alfred-my-mind/PULL_REQUEST_TEMPLATE.md at master ยท nikitavoloboev/alfred-my-mind

So from [Wayback/Archive] ISSUE_TEMPLATE – Google Search a few results for me to get started:

--jeroen

Posted in Development, DVCS - Distributed Version Control, git, GitHub, Software Development, Source Code Management | Leave a Comment »

Updating Git for Windows credentials for Bitbucket app password – Stack Overflow

Posted by jpluimers on 2025/01/16

For me, saving bitbucket.org passwords fails consistently (when using app passwords, it keeps popping up the git credentials dialog on Windows each time I try to push to origin), so I need to dig deeper into [Wayback/Archive] Updating Git for Windows credentials for Bitbucket app password – Stack Overflow.

Query: [Wayback/Archive] windows store bitbucket app password in git – Google Suche

--jeroen

Posted in BitBucket, Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

GitHub – src-d/hercules: Gaining advanced insights from Git repository history.

Posted by jpluimers on 2024/11/12

[Wayback/Archive] GitHub – src-d/hercules: Gaining advanced insights from Git repository history.

This project, with the command-line tools hercules and labours is on my research list as it can get pretty good long-term insights on project health (the tool is programming language independent).

Especially the half-life of code is a good measurement, as well as the existence of code bursts (hello major version increments!).

This research part is important: [Wayback/Archive] Change Bursts as Defect Predictors – Publications – Software Engineering Chair (Prof. Zeller), by Nachiappan Nagappan, Andreas Zeller, Thomas Zimmermann, Kim Herzig, Brendan Murphy

Read the rest of this entry »

Posted in BASTA!, Conference Topics, Conferences, Development, DVCS - Distributed Version Control, EKON, git, ITDevCon, Software Development, Source Code Management, Static Code Analysis | Leave a Comment »

Good example for open source guidelines to contributors: liburing/CONTRIBUTING.md at master ยท axboe/liburing ยท GitHub

Posted by jpluimers on 2024/11/07

This one is clear and concise. [Wayback/Archive] liburing/CONTRIBUTING.md at master ยท axboe/liburing ยท GitHub of which some highlights:

โ€ฆ

The main reasons for the rules are:

  1. Keep the code consistent
  2. Keep the git repository consistent
  3. Maintain bisectability

โ€ฆ

No fixup commits! Sometimes people post a change and errors are pointed out in the commit, and the author then does a followup fix for that error. This isn’t acceptable, please squash fixup commits into the commit that introduced the problem in the first place. This is done by amending the fix into the original commit that caused the issue. You can do that with git rebase -i and arrange the commit order such that the fixup is right after the original commit, and then use ‘s‘ (for squash) to squash the fixup into the original commit. Don’t forget to edit the commit message while doing that, as git will combine the two commit messages into one. Or you can do it manually. Once done, force push your rewritten git history. See reasons 1-3 in the introduction series for why that is.

โ€ฆ

A good commit explains the WHY of a commit – explain the reason for this commit to exist. Don’t explain what the code in commit does, that should be readily apparent from just reading the code. liburing commits follow the following format:

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Open Source, Software Development, Source Code Management | Leave a Comment »

Lou Creemers on Twitter: “Which of these software development books would you want? I loooved Blaming the User https://t.co/VPEaaiOGId” / Twitter

Posted by jpluimers on 2024/10/24

Some good slide material (and even better further down this post) fromย [Wayback/Archive] Lou Creemers on Twitter: “Which of these software development books would you want? I loooved Blaming the User”:

Read the rest of this entry »

Posted in Conference Topics, Conferences, Development, DVCS - Distributed Version Control, Event, git, Google, GoogleSearch, Pingback, Software Development, Source Code Management, Stackoverflow | Leave a Comment »

When you broke code, finding back where it got broken is easier if you have small change increment (i.e. bisection and binary tree search)

Posted by jpluimers on 2024/09/26

A while ago [Wayback/Archive] b0rk (Julia Evans [Wayback/Archive) wrote an interesting Tweet on finding back where you broke code of which the OCR text reads like this:

strategy: change working code into broken code

If I have a working version of the program, I like to:

  1. go back to the working code
  2. slowly start changing it to be more like my broken code
  3. test if it’s still working after every single tiny change
ยทโ€โ€โ€โ€โ€โ€โฌŠโธณโฌˆห™โฌŠโธณโฌˆห™โฌŠโธณย  ย  ย  ย  ย  ย  ย  OH THAT’S WHAT BROKE IT!!!

I like this because it puts me back on solid ground: with every change make that DOESN’T cause the bug to come back, I know that wasn’t the problem.

by JULIA EVANSย @borkย wizardzines.com

This is similar (her arrows were of varying length) to using a binary search algorithm hunting for where the code was broken using bisection: repeatedly halving your search space to quickly zoom into the problem.

Another important aspect is that small commits while fiddling to solve an issue can help you determine what small commit was actually solving the issue.

Read the rest of this entry »

Posted in Algorithms, Conference Topics, Conferences, Development, DVCS - Distributed Version Control, Event, git, Mercurial/Hg, Ruby, Software Development, Source Code Management, Versioning | Leave a Comment »

I need to contemplate about (not) using standards Commit Messages and Commit Emojis

Posted by jpluimers on 2024/08/27

These Tweets from Kris are food for thought about using standards for Commit Messages and Commit Emojis.

It is the “writing zzzz by convention” mantra all over the place (where zzzz can be anything from code to documentation): does it add value, should it be formalised, can it by achieved by other means?

I need to think about it later, so I saved his tweets below:

Read the rest of this entry »

Posted in Conference Topics, Conferences, Development, DVCS - Distributed Version Control, Event, git, Software Development, Source Code Management | 2 Comments »

Interesting thread on the usefulness of running a syslog server and being able to write to it

Posted by jpluimers on 2024/07/04

For my link archive:

  1. [Wayback/Archive] jilles.com ๐Ÿ”œ MCH2022 ๐Ÿณ๏ธโ€๐ŸŒˆ on Twitter: “My Ubiquity setup stopped working (again). This happens way to often in my opinion. I have setup a monitoring environment to debug the issues and consider it not reliable enough for the amount of money I spend on it.”

  2. [Wayback/Archive] Rick on Twitter: “@jilles_com Waar heb je problemen mee? En ik tijdelijk een syslog server draaien. Dan je kun je gemakkelijker de logs doorspitten (kiwi heeft een simpele gratis versie)”
  3. [Wayback/Archive] jilles.com on Twitter: “@RickvanSoest Ik draai een grafana setup met syslog, snmp ingest en een losse traceroute om uit te sluiten of het aan de provider of de hardware ligt.”
  4. [Wayback/Archive] jilles.com on Twitter: “@RickvanSoest Software upgrades die falen. In dit geval een PoE switch die op zโ€™n gat lag. In dit geval iets dat met een reboot gefixt is. Maar in geval van de upgrade was het een compleet nieuwe configuratie.”

In todays cross-platform world, it pays if your tooling can send logging to syslog.

Though originating from the CP/M and SunOS background, I have done most of my professional development work in Windows back-ends and front-ends, so here are some links relevant to that:

--jeroen

Posted in .NET, C#, Delphi, Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management, Subversion/SVN | 2 Comments »