CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 97 users online: 2 members, 71 guests and 24 bots.
Members: ACagliano.
Bots: Spinn3r (1), MSN/Bing (1), Magpie Crawler (6), Googlebot (15), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 26 Mar 2012 09:55:54 am    Post subject: Git Questions

So my friend is using Git for one of his projects, and I'm going to be contributing to it, but I want to set it up a little differently than he has it set up right now. Right now, the main repo sit in, say /blah/blah/a/. He has a clone on his computer, and he just pushes to /blah/blah/a/ when he's done making changes. What I'd like to do is clone /blah/blah/a/ into something like /blah/blah/b/ or blah/blah/testbed/, and then I'll clone /blah/blah/testbed/ and all the changes I make I can push to testbed, make sure it works right, and then push to /blah/blah/a/. Does that 1) Make sense as a pattern and 2) Lend itself well to being implemented in git? Can I clone a clone like that, and cascade the pushes?
_________________
Shaun
Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1529
Location: at my house

Posted: 26 Mar 2012 10:10:55 am    Post subject:

Can't recall how to do it off the top of my head, but you should be able to use git-branch, then when you are ready to push those changes back to the main branch use git merge.
_________________

Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 26 Mar 2012 02:26:54 pm    Post subject:

I don't think I want to branch, though. I just want to clone to one spot, and then clone that clone, and then be able to commit back up the tree.
_________________
Shaun
Back to top
TheStorm


NOU!


Joined: 26 Mar 2007
Posts: 2375

Posted: 26 Mar 2012 05:33:04 pm    Post subject:

I'd have to agree with lafferjm on the fact that it sounds like you want a branch. Git makes branches and merging them really easy and that seems to be what you want. You would clone his tree, make your own branch and then you can clone your branch.
_________________

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

<Michael_V> or create a Borg collective and call it The 83+
<Michael_V> Lower your slide cases and prepare to be silent linked. Memory clears are futile.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.024312 seconds.