Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Posts by Michael‭

44 posts
91%
+19 −0
Q&A Are "strong passwords" at all meaningful?

Passwords are annoying. Nobody really enjoys passwords, which is why "The End of Passwords" articles keep circulating. I'm looking forward to the day the prediction comes true, but in the meantime ...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
87%
+12 −0
Q&A How to avoid pushing past commits when making a pull request?

The Problem The main problem is that it's important where on the commit graph your branch diverges. I'm going to make some assumptions about the circumstances that are not explicit in your questi...

posted 11mo ago by Michael‭  ·  edited 9mo ago by Michael‭

Answer
86%
+11 −0
Q&A What is the general process for merging two git branches, reviewing edits on each branch?

There are two major sections to this answer: the Git part and the conflict resolution part. It wasn't clear at first which one was intended by the question, but both are important for a full answer...

posted 2y ago by Michael‭  ·  edited 8mo ago by Michael‭

Answer
85%
+10 −0
Q&A How do I split a feature branch into two?

I just realized that I started writing code for what was going to become a second independent feature on the branch I was already working on. --A--B--C main \ `Q--R--S--X--Y-...

3 answers  ·  posted 6mo ago by Michael‭  ·  last activity 5mo ago by Karl Knechtel‭

Question git
81%
+7 −0
Q&A C#: Performance hit from using calculated property instead of get-only property with initializer?

You're right about the recalculation, as you can see from some easy experimentation by rigging two (dynamic) properties and logging what each one gives you. public long TimeStamp1 { get; } = DateT...

posted 2y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer
81%
+7 −0
Q&A After git fetch, how to fast forward my branch?

The answer by hkotsubo is correct. But just in case you're being very specific about fast-forwarding, it's worth stressing that you can use --ff-only as an option on the merge to abort if it requir...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
81%
+7 −0
Q&A Git apply vs git am

Each of them has an analog to another Git command. But instead of objects in the repository, these take text file(s) created either by you or someone else. git apply Think of this as Applying a g...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
80%
+6 −0
Q&A Configure Git branch to push to different remote than it pulls from

As a loose follow-up to Why force designation of a remote main branch?, is there a Git-native way to configure a branch for GitHub's so-called "triangular" workflow? The triangular workflow is mea...

2 answers  ·  posted 4mo ago by Michael‭  ·  last activity 3d ago by Michael ‭

Question git
80%
+6 −0
Q&A How do I split a feature branch into two?

In the most general case[1] that you're asking about, you want the three-term rebase --onto. First, make your feature-2 branch: git switch --create feature-2 --A--B--C main \ ...

posted 6mo ago by Michael‭  ·  edited 6mo ago by Michael‭

Answer
80%
+6 −0
Q&A Turn all changes after latest origin/main into a branch

First you want to make your new branch at HEAD (current main). Then you want to point main back to origin/main. # Create new branch git branch new_branch_name # Point main back at origin git ...

posted 2y ago by Michael‭

Answer
80%
+6 −0
Q&A What are the benefits of starting a Git repo with an empty commit?

This sounds to me like someone had a problem once and they've decided upon a somewhat silly way to keep that from ever happening again. The big repository hosts have a different way of addressing ...

posted 3y ago by Michael‭  ·  edited 3y ago by Michael‭

Answer
77%
+5 −0
Q&A Why does my regex "match" at the beginning of the string, but not at the end?

The documentation for re.match(...) is explicit that it only matches at position 0. If you're asking this question, what you probably want is re.search(...) to match at any point within the string.

posted 1y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer
77%
+5 −0
Q&A How to format Markdown in terminal

This is not exactly what you're asking for, but you could use bat, which has source code syntax highlighting and just use the raw Markdown.

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
77%
+5 −0
Q&A What is a reasonable minimum for making a FOSS project inviting to contributors?

Matthew's list is pretty good, although I don't think one has to do all the things on it as a "minimum." I offer one minimum and a couple nice-to-haves. Some of these I have learned as a contributo...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
77%
+5 −0
Q&A Can GitHub rewrite authorship of commits?

GitHub has a setting wherein they offer to "anonymize" your user email from, say, [email protected] to [email protected]. I presume this is to prevent you from getting spam from ...

1 answer  ·  posted 3y ago by Michael‭  ·  edited 3y ago by matthewsnyder‭

Question git hash github git-commit
75%
+4 −0
Q&A GitHub action triggered by somebody else's repository

Facing a somewhat similar situation, I took mr Tsolder's suggestion of looking into submodules. In my case, it was fine to keep the remote project as a folder in my local clone, but I think it sti...

posted 10mo ago by Michael‭  ·  edited 10mo ago by Michael‭

Answer
75%
+4 −0
Q&A Why force designation of a remote main branch?

GitHub seems to require that one of the branches on it be marked as the "primary" branch. I understand this (perhaps mistakenly) to be the origin/HEAD. Why would they make it compulsory? On forked...

2 answers  ·  posted 1y ago by Michael‭  ·  last activity 1y ago by InfiniteDissent‭

Question git github
75%
+4 −0
Q&A Get the name of the remote tracked branch of my local branch for use in script

I'm not exactly sure what you want with the whole of rd, but …programmatically get the name of the remote branch which my local branch is tracking… sounds very much like the @{upstream}/@{u} ...

posted 1y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer
75%
+4 −0
Q&A Command to format code from repo into single markdown file

Sylvester's answer is great, but I wanted to point out that interpolation only happens in double-quoted strings ("), not in single-quoted ones ('). If you have lines that don't need any variable o...

posted 3y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
71%
+3 −0
Q&A Link to Markdown line on Bitbucket

Is there a way to link to specific code lines for a Markdown file[1] in Bitbucket? I have found a UI toggle for each of GitHub, GitLab, and Forgejo that adds a query string to disable the pretty ou...

1 answer  ·  posted 9mo ago by Michael‭  ·  last activity 9mo ago by John C‭

Question bitbucket
71%
+3 −0
Q&A How can I export a full Scryfall search to a CSV compatible with Moxfield collections?

The documentation for /cards/search says This method is paginated, returning 175 cards at a time. Review the documentation for paginating the List type and and the Error type type to understand ...

posted 11mo ago by Michael‭

Answer
71%
+3 −0
Q&A Get global gitconfig path

Is there a command I can run to get the path of global gitconfig for a user? Like git config --global --edit, but I want the path, not an editor window. I want the right path whether or not this f...

2 answers  ·  posted 1y ago by Michael‭  ·  last activity 1y ago by InfiniteDissent‭

Question git
71%
+3 −0
Q&A How to establish a relationship between HTML elements (tags)? (i.e., how can one element refer to another one)

I'm not sure how much this helps or inspires you, but there's an XML schema for the US Code and for bills and amendments to change it. See xml.house.gov and the GitHub repository for United States ...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
71%
+3 −0
Q&A Understanding the Matrix protocol vs Matrix server and what can be implemented from scratch

Specification You understand correctly. Matrix is an interface for federated encrypted communication. From the first page of the spec: Matrix defines a set of open APIs for decentralised commun...

posted 2y ago by Michael‭  ·  edited 2y ago by Michael‭

Answer
71%
+3 −0
Q&A Can GitHub rewrite authorship of commits?

It doesn't change commit data when you push. You have to set your local email address to the noreply one. About commit email addresses […] If you'd like to keep your personal email address pri...

posted 3y ago by Michael‭  ·  edited 3y ago by Michael‭

Answer