Installing Git for version control

So now that we have verified that we have a working QtCreator installation and can build applications (at least for running in the simulator) we could take a look at the version control tools.  It looks like the QtCreator will support quite a many different tools (Bazaar, Git, Mercurial, Subversion, Perforce, CVS). However, the tool must be installed separately, it does not come bundled with the QtCreator.

I’m most familiar with subversion, but why not try something else for a change. E.g. git seems to be quite popular nowadays, especially in the open source software world. I’m going to install the windows version 1.8.3, it is available in

https://github.com/msysgit/msysgit/releases

I know this is not the most recent version, but it should work well with the QtCreator (newer versions seem to have some compatibility issues).

msysgit-3

When download is ready just run the installer and click Next to proceed.

Git-1Git-2

Specify the installation folder.

Git-3

From the components I will just add the tool icon to desktop,

Git-4

Just accept the default shortcut folder.

Git-5

Let’s select the Git Bash only option (I don’t use cygwin and I don’t want to override any windows commands).

Git-6

And let’s commit with Unix-style line endings so that all our text files will be linux/unix compatible (good for cross-platform development).

Git-7

After clicking Next the files will be copied to the destination folder. And that’s it basically. We should now have a working Git tool.

Git-8

1 42 43 44 45 46 50