You are not logged in.

#1 2009-08-11 07:19:13

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

[solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

I have a C++ project that's being refactored. The last few times I did this, I simply backed up the entire workspace (using Eclipse CDT) to have a static snapshot of my work up to that point just in case. I've been wondering whether it would be simpler if I set up a local code repo which I could push/pull from/to. Anyone have experience in that, just for their own work? Seems like Git or Mercurial would be the easiest to set up and use, but can't really find a good guide (most of those that Google shows me are for using git on an existing project instead of as a backup tool). If I could be pointed to some good links it would be much appreciated, no need for very detailed solutions.

Last edited by ngoonee (2009-08-11 09:11:10)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2 2009-08-11 07:21:49

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

Hello.
www.github.com we be a nice idea it's simple you can find on it some guides:
What to do to create a repo.
How to have your private key wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#3 2009-08-11 07:22:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

I use local git repos, mainly because I "know" how to use git.

This is my favourite git reference for the moment: http://progit.org/book/

Offline

#4 2009-08-11 07:31:20

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

Ah. Thank you!

Do you have experience/know about the relative merits of git and Merc?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2009-08-11 08:26:10

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

In my experience git is magnitudes faster than the competing dvcs. The only reason I would consider using another (bazaar) is when collaborating with windows users, since it has a very nice gui interface. Other than that, it's just git all the way. I use it for all kinds of projects, from backing up dotfiles, to keeping my notes under revision to managing source projects. It is among the most awesome software tools I have yet to encounter. Getting used to it might take a little mind bending, but once that is over, it is really quite intuitive.

In addition to the progit book, http://gitready.com/ is a nice resource. If you like screencasts, take a look at peepcodes (non free though). The best resource I have encountered though, is the O'Reilly book Version Control with Git: Powerful tools and techniques for collaborative software development. Not trying to push merchandise here, it's just really well written.

.]

Offline

#6 2009-08-11 08:30:53

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

smile thanks alterecco. Now I'm going to ask a question that probably marks me as a real noob, but here goes:- is there any GUIs for git other than qgit? I'm mainly gtk myself, don't think I have qt apps (or was VBox a QT app...)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2009-08-11 08:50:56

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

Well...

There are several ways of viewing your git repository. I think the best is to point you to this list
http://git.or.cz/gitwiki/InterfacesFron … Interfaces

Personally I have never used any of them, but i might take a look at `tig` which is a ncurses frontend.

.]

Offline

#8 2009-08-11 08:51:00

WhiteMagic
Member
Registered: 2007-03-01
Posts: 85

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

In the git wiki there's a list of graphical interfaces for git http://git.or.cz/gitwiki/InterfacesFron … Interfaces. I don't know however how complete the list is.  I mostly use git-gui (provided with git) but that's only for committing complete files. For more fancy stuff like rebase and hunk based commits I still use the command line as I didn't find a gui yet that handles those well.

Offline

#9 2009-08-11 09:10:57

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [solved] Local Git/Mercurial/SVN/CVS repo for C++ project?

Thank you all. I'll mark this as solved, since I think any further questions will be quite OT. Time for reading and trying out, methinks.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB