Showing all posts tagged: 'Source Control'

A 4-post collection

Merge detached HEAD back to origin/master – Git

I’ve recently had to use this awesome Git feature to fix a problem. I was aware that the last couple of check-ins were bad and I wanted to pick up and continue working from a known working point. Git allows you to do this by temporarily switching to a different commit. The command to do this is: $git checkout c2744f95d c2744f95d is the commit hash (SHA) so make sure you find and use the right commit hash. From that point on, you can continue working as normal. Another option is to create a totally new branch (a feature branch …[read more]

Delete Git branch locally and remotely

I stumble across this one every so often. And since I have to look it up every time, I may as well document it. Today's post is small and easy. To delete a Git branch after the completion of a feature or bug fix, you can use the following commands. Cause the CLI rules, right, RIGHT? Anyway, back to the task at hand. As you realize, there are 3 different branches that need to be deleted in Git: The local <branch> The remote origin/<branch>. The local remote-tracking branch origin/<branch> that …[read more]

How to update your Git credentials on Windows

Git is awesome and I love it. Plain and simple. It works. Yet, there are occasions when things within Git break. And then you have to go googlebing for the solution. I'm just back from a 2-week holiday and, as expected, my Windows credentials had expired so I changed them. Then I tried to do a git pull and I got this nice error message: $ git pull fatal: Authentication failed for `repo url/` Apparently, updating my domain credentials also broke my Git credentials. At first, I thought there was an issue with my credential.helper. So I unset it and …[read more]

TFS Continuous Integration for Windows 8.1 Store Apps with SDK dependencies

I am in the process of developing a Windows Store App which has a dependency on SQLite. Today, I decided to implement continuous integration (CI) using my hosted TFS service. If you are serious about CI but don’t want to host your own CI Server and go through the pain of setting up the CI provider (TeamCity, TFS, CruiseControl etc), I highly recommend you looking at the official hosted Team Foundation Service here. Although adding the custom build is very straightforward, I stumbled upon a few issues. The first problem was the fact that the project had a reference …[read more]