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
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 ...
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...
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...
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...
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 ...
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 ...
GitHub has a setting wherein they offer to "anonymize" your user email from, say, somebody@example.com to somebody@users.noreply.github.com. I presume this is to prevent you from getting spam from ...
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...
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} ...
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...
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.
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...
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 ...
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...
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...
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...
The documentation for git stash list says list [<log-options>] List the stash entries that you currently have. Each stash entry is listed with its name (e.g. stash@{0} is the latest entry...
In SQL Server 2022+, there's a dedicated binning function called DATE_BUCKET. Each of these statements increments DATE_BUCKET with a bucket width of 1 from the origin time: DECLARE @date DATETI...
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...
Does GnuTLS support CA Name Constraints (RFC 5280, 4.2.1.10), so you can limit the valid domains directly in the root CA? I'm not aware of any CAs that self-limit this way,[1] except for when the ...
I think this is a judgment call. If the answerer appears to be a human, you can caution them with How We Do Things Around Here and edit the answer. If they do it again (and this user has)...
These are my theories, but I'm not particularly excited about either of them. Something to see They need something to show when you visit the website's index. Otherwise, https://www.github.com/yo...
Does bat work for this, as well as for your other question? I see you have tagged your question as Python, but I'm not sure I understand how it's relevant. Sources: this issue comment and also tha...
With help from hkotsubo in the comments, it seems you can follow the behavior described by Git's documentation. This will work until they change it, at least for your *Nixes and *BSDs: path="${XDG...
There is a small oddity wherein this post shows up strangely in list pages: Regex to get text outside brackets I am trying to capture the content outside square brackets in groups, using this r...