Git in Windows with TortoiseGIT client & ProjectLocker free Git Hosting


Hello All

Hope you all are fine. Today I will show how to work with Git in windows environment with TortoiseGIT client & ProjectLocker Git Hosting. ProjectLocker is a good Git hosting provider for startup a private project, you may check there pricing plan to let know more about the features of different plan.

Now first do signup from https://www.projectlocker.com/signup/startup ( I will show through a free plan) , After signing up verify your account and login through https://portal.projectlocker.com/ . You will find “Account Links > Add Project” from the left menu panel, select “Add Project”. Now give a project name, description and select Git as Repository type.I’m giving the name “DemoGit” for my project.Click “Create Project”.

In the next step you have to create user account from “Account Links > Add User”. Now you have to create a Public Key for your repository.

First download PuttyGen from the [ link ] or anywhere you found through googling and create a public and private key pair through the software as bellow by clicking Generate button and moving mouse pointer arbitrary.

Now give a passphrase and confirm it.After that save the private key by clicking “Save private key” , I have saved my with the name demokey.ppk . You have to copy the public key (the top red marked block in the following pictuer)

Its time to get back in ProjectLocker :) .  Click manage public key from “User Links > Manage Public Keys” and click “New Key”. Then pest  the public key in Key section ,User name (which you have created in user section, I’m putting my email here) and a name to identify the key in Name section and save it as bellow by clicking “Save Public Key”:

Open list projects from “Account Links > List Projects” and select your desired project from the Name column (I’m selecting DemoGit for the demonstration purpose.) as bellow:

Now assign the user to the project from the user list bellow by clicking “Add To Project” corresponding user.

It’s the time to play with Git client software. For this, first we have to install  msysgit from http://code.google.com/p/msysgit/downloads/list after that TortoisGIT from http://code.google.com/p/tortoisegit/downloads/list accordingly with next,next flow (I mean default settings, you don’t have to change any settings over there ) and reboot your machine.

Now open a folder where you want to put your files to sink with Git repository (I’m opening a folder named “DemoGit”). After that right click on the the folder and click “Gil Clone..” as bellow:

Now in the next panel you have to pest the Url (git repository location , you will get it from “User Links > User Home” like the image bellow ) and locate the private key which we have generated earlier (for me its demokey.ppk)

Now you have to enter passphrase which you have set during key generation.

That’s it , we have successfully configured our repository with TortoiseGIT client.

Now we will add a file named “demo_text_file.txt” and it to our repository.To that we have to right click the folder again and do as per image bellow.

Then confirm the add operation :

Now you have to do as per following image sequence to push the fine into server.

We are going to change some text in our file and give Git Commite as per image bellow:

We have to put a message before committing something into our brunch in Message section, We also can put signed off signature as bellow:

To finally push the file into server we have to click push :

And the we have to select in which brunch we should to push in server and click ok.

No to sink with others commit we have to update the code base as bellow.

Then select “Pull” as bellow:

There are lots more Git operation we can perform through TortoiseGIT but in this tutorial I just have shown how to do the basic operation. Hope in future I will post more advance feature & operation of GIT. 

Thanks

That’s all for today .

To know more visit to my blog [ http://blog.actcode.com/ ]

Bye


Leave a Reply