git logo

How to import an Azure DevOps Git repository… From another Azure DevOps organization?

A while ago, I needed to move an Azure DevOps Git repository from one organization to another. And that was far easier than I thought. For once, a nice surprise from Git _and_ Azure DevOps 😀 So, let me tell you how that’s done! Well, how it’s done if it goes well, anyway. And if still works as it used to when you’re reading this. We’ll see! Solution Posts Related to “How to import an Azure DevOps Git repository… From another Azure DevOps organization?”:Azure IoT…Continue reading How to import an Azure DevOps Git repository… From another Azure DevOps organization?

git logo

How to nuke your Git(Hub) commit history?

Ah – this was a fun one. I needed to figure out how to purge, flush and clear your commit history on GitHub. Turns out it isn’t as easy as clicking a button in the web user interface – the world is apparently not ready yet! 😁 Luckily, it wasn’t that complicated either – and the steps should work for other flavors of git as well. Background Always remember to .gitignore your secrets, folks! And if you forget, pray you’re not committing to a public…Continue reading How to nuke your Git(Hub) commit history?

git logo

Visual Studio Code fails when running “git pull” for a new project

This article describes a simple fix to an issue (well… One or many possible issues), where git fails to pull anything from remote, throwing instead an error somewhat like this: fatal: no such branch: ‘master’ Bah. This stops you from pulling any new changes from remote, and likewise, it will stop you from pushing your new stuff out there. Always something going wrong with git, right? But what is the reason this time exactly? Problem So there I was, just following a guide on docs.microsoft.com.…Continue reading Visual Studio Code fails when running “git pull” for a new project

git logo

How to list your git stashes

Long story short, yes, I really did have to google this, and since top results seemed to give pretty unclear (or even wrong) answers, I decided to document it for myself. Maybe it’ll be helpful to someone else too! And just to state the obvious: I’m using GitHub Desktop for most of my mandatory Git stuff, but whenever I have to run any git commands, I run Windows PowerShell (git exe is added to PATH variable). Solution Well, it’s actually very, VERY simple. You can…Continue reading How to list your git stashes

Version Control problems

How to resolve “refusing to allow an integration to create or update .github/workflows/main.yml” on GitHub Desktop?

Ran into this one when trying to push my merge from upstream. I was adhering to my own instructions (see below for a link), but got the error (further below) that stopped me from using GitHub Desktop to push (sync) at all. Posts Related to “How to resolve “refusing to allow an integration to create or update .github/workflows/main.yml” on GitHub Desktop?”:Sync local repo with the original on GitHub (Git merge upstream)Visual Studio Code fails when running “git pull” for a new projectHow to nuke your…Continue reading How to resolve “refusing to allow an integration to create or update .github/workflows/main.yml” on GitHub Desktop?

GitHub Desktop version information

Sync local repo with the original on GitHub (Git merge upstream)

This is one of those “note to self” -kinds of entries. This workflow is probably so natural to a lot of you all, that you won’t need to ever google it – but since I don’t do that much development using git with the full “fork – clone – branch – submit pull request” -process (which is really typical with GitHub – and I guess Open Source in general), I always need to look up the instructions on how to add pull any changes from…Continue reading Sync local repo with the original on GitHub (Git merge upstream)