Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

Tuesday, April 9, 2013

How to upload the code in code.google.com via svn

  • First of all,  Subversion has to be installed, download and install TortoiseSVN - Downloads
  • Click here  http://code.google.com/hosting/createProject to go to google code create project page.
  •  Search for project name which u decided by clicking the Search projects button on the top right corner. If u find none, proceed with the create project form. Otherwise u have to choose another name.
  • Click the create project button and go to Source tab.
 
  • View svn checkout link from bolow image:
  • Suppose create a folder named "prj" under c drive and go to the directory.
  • Mouse right click and select "SVN Checkout" and pase the url:
  • https://test0-0.googlecode.com/svn/trunk 
  •  urprojectname – name of your project which u created
  • urusername – ur name used while creating ur projec
  • This action will ask for password which u can find under the above command in Source tab by clicking googlecode.com password 
  •  

How to use SVN with Google code

How to use SVN with Google code

http://mzaher.wordpress.com/2009/03/02/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