I have been thinking back to when I started using source control and some of the different tools I have used over the years. When I was learning to code it was some time after I had learned the basics that I learnt about source control. Back when I started writing webpages I would have a folder containing all my html,...
Reviewing code is a great habit to get into. Code reviews help share knowledge between your team members and help catch bugs before they get into production. But how do you get into the habit of reviewing and avoid the we don’t have time to do this mentality? Visual Studio Team Services (VSTS) has some great options...
Source control is bread and butter for web developers, however not so much for SQL developers and other business people. One of my goals for the coming year is to get the whole of my team using source control processes. One of the arguments against using source control is there will always be a few exceptions where it...
I created my GitHub account in August 2010, lets look at what I have done with it. In 2010 I started by committing the code for an old php website I had created. Then in December I committed some other php sites. Between 12 December 2010 and 29 September 2011 I must have created some automated process which is why...
As a developer using source control and git is bread and butter of what we do. Github is probably the most popular and widely known hosting service for source control but I have also used Bitbucket and Visual Studio Team Services. Lets have a look at each one and what they offer. Note while I have included prices I...
I am currently working on source code that is over 5Gb in size. This is mostly due to a poorly thought out folder structure, there are code files, images and Excel files all jumbled together. I think a clear distinction should be made between source code and data. Source Code I will define source code as anything that...
One of the features of git is the ability to tag a point in my change history with a tag. For a while now I have been manually tagging my code whenever I do a release, so I can easily work out what has changed by doing a diff between two tags. Now that I am automating my release process with TeamCity I am thinking...
Today I did a clone of one of my git repositories and it took ages to download. Looking into what got downloaded it was easy to see why. The .git folder was over 500Mb in size. I know how this has happened. This repository was created in 2013 and has been used by me as a dumping ground for lots of things related to the...
I use git as my source control system. Here are some of the most common git commands in no particular order. Check Out a git Repository git clone /path/to/repository Add files to commit git add Commit files to git git commit -m “Commit message” Push changes to server git push origin master Show status git status...
I always use source control for my coding changes, however some of my commit messages leave something to be desired. I always try to write a commit message but I often think that the change themselves should be enough to indicate what I did. I also don’t need to include who made the change or the time and date and that...