Friday, 16 April 2010

setup google code repositry and link with tortoise




  • I suppose you have a Google account otherwise go ahead and make you one
  • Than you go to your dashboard and search for the Code link indicated on the picture above and click it. The page will give you all kinds of other links and useful information of the Google code project in general but , a pitty tough , the actual link to create a new project is not present. My first time I created a project I had to google around to find the correct link and here he comes:
http://code.google.com/hosting/
  • You just select create new project and give in your id tags below you can see an example:


    • Google checks your project name and if it already exists you must take another one. I had to take another one because "tortoise" was not free. So I changed it to "tortoisecourse". If your project is made you get follow screen ( only upper left corner ):
    • Basically this is it for making the repository ready to work with any SVN client. If you click on source you will see that everything is ready trunk , branches , tags and even a wiki page you can use:






    • First you need to find the URL that is needed to link your repository with your tortoise client. You need the URL and also your username and password. You can find the url by clicking on "checkout". Next information will be showed:


    •  Next you need to find your Google code password. You can do that by going into your profile and take the setting option. You will need that to able to connect to your repo. I'm not showing this on a little picture because my password is public that way. But it's kind a straight forward way and easy to find. Once you have that information you can go back to your files you want to be managed by SVN.
    • We will setup tortoise first with the link info. Suppose you want to check in a folder called "course" with a singe readme text file in it. Well just click right on that folder and goto the tortoise item and click on import:



    • Now you need to give your url and a comment:


      • After you click OK you will be prompted to give in your username and password. Just go ahead and give them in. Best thing is selecting the keep authentication so you will never be prompted to give in those things ;-)



        • After you login is successful tortoise will import your file(s) into the Google code repository and finally you must see following window that says that your readme file is imported:



        • Now you have initially imported your file(s). The last step you need to do is doing the actual check out from the repo. This is needed to synchronize your repo with the local file structure. You just click right in windows explorer and taken the SVN checkout item. Tortoise will automatically prompt you using the correct URL. You can still change your working directory where you want the files to be dropped.
        • From now on all your changes you make locally will be tracked by subversion. In my next blog I will go a little bit deeper in all of the functionalities of tortoise. Just one more thing it's best that you restart your system to able to view the little tortoise icons in file view.


        installing turtoise svn client

        • Goto the turtoise website hosted by tigris:
        http://tortoisesvn.tigris.org/
        • Check for the latest version section and click the link provided for the download page, you can choose between the 32/64 bit version. It's also indicated against which version of subversion (mine was 1.6.9) tortoise is build.
        • The download will automatically start from the source force repositories.
        • If all went well you normally have the msi installer file in your download folder
        • Run the msi installer normally it's signed too so no worry you must get something like below: 


        • Normally all feature are enabled by default so carry on with the installation it only takes 56M bytes of your disk space
        • When the installation is finished it will ask for to reboot your machine go ahead and let's do that
        • Basically that's it for the installation to check tortoise is properly installed you can right click a folder in your explorer there you must find svn checkout:


        • It's quit simple and fast. Next blog I will explain how you can link your google code repo with your local tortoise client.