LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2010, 07:56 AM   #1
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
how to use git to host my code at Google


I am having a folder named bond which has all my source code I would like to upload to a git repository on internet.
I just created an account at Google code.
Here is a link
http://code.google.com/p/bond/
by this time I have read a lot of guides available on internet but I am not able to understand what should I do to be able to upload my code to the above link.

I have checked
http://flashsim.wordpress.com/category/google-code/
the guy seems to be quite frustrated with git.
Google gives a link to read a doc
http://hgbook.red-bean.com/read/file...-matching.html
read it completely and this actually did not helped me a bit.
In the comments section of following link
http://google-opensource.blogspot.co...e-project.html
I get a URL
http://linuxsagas.wordpress.com/2009...d-google-code/
this guy seems reasonably mature to write how to begin.

I created a folder named bond and kept all my C files in it.
Step1 )After that I went to a folder named bond this is what I want to host on internet.
Step 2) git init
Step 3) git add .
After this what do I need to do?

Last edited by jamesbon; 11-26-2010 at 08:16 AM.
 
Old 11-27-2010, 08:00 AM   #2
hiptobecubic
LQ Newbie
 
Registered: Oct 2009
Distribution: Slackware
Posts: 23

Rep: Reputation: 2
Google only supports svn and hg (as far as I know). Luckily, git is a better svn client than svn itself. Read about how to use git-svn, there are loads of tutorials out there, and then just use an svn repo on google. I'm using it and it works great.
 
Old 11-28-2010, 09:48 PM   #3
stephen.kent.phillips
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Thanks for the link and the comments on my blog (linuxsagas). I wouldn't consider myself mature -- I am still figuring this stuff out too.

Here is my thought: you probably want to check out your Google Code repository to create your local one.

Maybe something like this:
1) rename your "bond" directory to something like "bond-backup"
2) create a new "bond" directory
2) checkout your Google Code site into your new directory:
git svn clone –username <username> https://bond.googlecode.com/svn/trunk
3) copy your files from your backup directory into this new directory
4) add these files to the repository
git add .
5) commit the changes to your local repository
git commit
6) commit the changes up to the Google Code site
git svn dcommit


Just my thought -- I'd be glad for anyone to correct me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: This week at LWN: Gerrit: Google-style code review meets git LXer Syndicated Linux News 0 11-18-2009 05:50 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
LXer: Shipping quality code with git LXer Syndicated Linux News 0 05-03-2008 03:00 AM
why host google.com working and ping google.com not ? gudneo Linux - Networking 3 10-19-2006 12:56 AM
LXer: Manage Source Code and Linux Kernal Revision Using Git LXer Syndicated Linux News 0 07-01-2006 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration