How to use SVN with Google code

For a more updated version of this blog post go to my new Blog http://blog.m-zaher.com/2011/10/how-to-use-svn-with-google-code/

1. Download TortoiseSVN

http://tortoisesvn.net/downloads

2. Installing  TortoiseSVN and restart your computer.

3. To get your GoogleCode.com password go to:

http://code.google.com/hosting/settings

svn3

4.You should now see this new items below if you press right-click on any empty place in the explorer or on any folder

svn1

5. Create a New Folder to hold all your files that you will work on.

6. Right-click on this folder and choose “SVN Checkout…”.

7. In the “URL of repository:” Enter your project’s URL in this formate “https://%5BProjectName%5D.googlecode.com/svn/trunk”      e.g.”https://test.googlecode.com/svn/trunk”

svn22

8. Press OK and Enter your Google username and your GoogleCode.com password – in this case “Bx7QS3by2rX9″ -

svn41

9. In the folder add a new text file “test.txt”

10. Right-click /TortoiseSVN /Add…

11. Select the files you want to upload to the SVN.

svn5

12. You should see this in case of a successful uploading.

svn6

13. Note the RED X meaning that this file isn’t up-to-date with the SVN.

svn7

14. Right-click on the text file and select “SVN Commit…” and enter any message you want to write.

svn81

15. This is what you should see after a successful commit.

svn9

16. Note the green check mark on the file meaning it is up-to-date with the SVN.

svn10

Notes

  • If you ever make a mistake and don’t know what to do with the file, right click on it, go to revert. it’ll take you to the head revision.
  • Before modifying anything, make sure you have the latest files from the svn by going to file, svn update.
  • If someone modified the file that you are trying to upload between the time you downloaded it and now, you will get an error. You have to run an SVN update and it will merge the changes you’ve made with the ones in the SVN repository. Then check to make sure the file works correctly, then commit the merged file.

16.Go to your project web page e.g. http://test.googlecode.com and go to “Source” tab then “Browse”  subtab then choose “Trunk” from the list on your left

svn121

 

For a more updated version of this blog post go to my new Blog http://blog.m-zaher.com/2011/10/how-to-use-svn-with-google-code/

About these ads

36 Responses to How to use SVN with Google code

  1. hend89 says:

    thanks alot
    it is a very very very useful explain that i need it
    thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanks

    it helps me very much
    thanks again

  2. Gaston says:

    I was dealing with this for 3 days… The Google’s and SVN’s help is not good. Your tutorial is just what I needed. Thank you!

  3. Pitu says:

    With this how-to i only can say: THANKS!!

    I’ve made a translation and adaptation of this how-to on http://open-pitu.webcindario.com/open/index.php?h=131 to catalan, at the end of the how-to there is a link to this page!

    • mzaher says:

      Its my pleasure.I’m very glade that i helped you and i hope that more people find it helpful.

      • Berry Summerour says:

        Although your instructions are very good, it did not explain how to create the initial Google source repository.

        Thanks,
        Berry S.

  4. sunnyraj says:

    Thanks a lot…..
    It cant be simplified more than this one…it helped a lot…
    Thanks again…

  5. Ahmed Magdy says:

    aiwa ba2a yabo zaher :D

  6. Loai says:

    I wished we used anything this semester in SE course other than java.net !!! it is a crime against humanity :D
    I want to try this Google code soon

  7. Chidam says:

    Thanks for a step by step explanation on how to use SVN and google project hosting.
    Good kick start article

  8. Hugues says:

    Thanks – very helpful tutorial! Everything worked perfectly on the first try.

  9. Pingback: How To Use SVN (Tortoise SVN) with Google Code (code.google.com) « Derek Reynolds – Brain Dump-O-Matic

  10. bugmenot0001 says:

    Thanks.
    I had a problem at first because the google code hosting was setup for Mercurial. Lol.

  11. Blaze Boy says:

    keep up the good work

  12. Bishoy says:

    Hi Mostafa,

    That’s a great article, thanks.

    I am trying to checkout code from Google code into my work PC. This is my first time to use Google code but not my first time on SVN.

    I am getting the error: OPTION “https://project.googlecode.com/svn/trunk” could not connect to server (https://project.googlecode.com)

    I tried turning off all firewalls, and tried to change to http instead of https (this should make it readonly right?). In call cases same error appeared.

    Any ideas?

    • mzaher says:

      Hi Bishoy,

      It’s a proxy problem, check TortoiseSVN’s settings and check “Network” (or something similar) and enter your proxy settings. I hope it helps.

  13. Logan says:

    Wow, this was easier than any other tutorial, thank you so much!

  14. Furtano says:

    very nice! ty !!!

  15. Pingback: SVN mit Google Code | live, it, development

  16. Pingback: SVN mit Google Code - Christian Schade – live, it, development

  17. clark says:

    the svn cannot be downloaded with tortoise. http://code.google.com/p/mfcuk/source/browse/trunk can anyone help me?

    I just try this turorial, but it doesnt work.

  18. Pingback: Subversion: How to use SVN with Google code » Rikki Mongoose

  19. Suwardi says:

    Oh Good, Succesfull..
    Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaank

  20. When i do the commit, it says “access to svn/blahblahblah forbidden”. How can i fix this?

  21. Gidget says:

    You’ve made some good points there. I looked on the web to find out more about the issue and found most individuals will go along with your views on this site.

  22. Pingback: SVN Repository Access | FIRST Team #3189 RoboBlog

  23. Awais Ahmed says:

    Im having probem point number 7

  24. Awais Ahmed says:

    What is project where to find this project URL’s?????

  25. Awais Ahmed says:

    When im done with option number 7 i didn’t asked me to ID and password and when i add cmooit and pressed ok my commit is failed and then this message is showing

    Commit failed (details follow):
    Server sent unexpected return value (405 Method Not Allowed) in response to
    MKACTIVITY request for ‘/svn/!svn/act/87759cc9-e630-864f-a208-dfe66f32721b’

    what to do kindly help me

  26. I usually do not leave a response, but I browsed a few of the remarks on How
    to use SVN with Google code Mostafa Zaher’s Blog. I actually do have a few questions for you if you do not mind. Could it be just me or does it look like some of the responses come across like they are left by brain dead people? :-P And, if you are writing at other sites, I’d like to follow everything fresh you have to post.
    Could you make a list of all of your social community sites like
    your linkedin profile, Facebook page or twitter feed?

  27. Rakesh Rocky says:

    thank a lot frnd….. it helpd me a lottttt thanks again!!!!!!!!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: