Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am new to git and I want to setup a private git repo for my projects. We are two guys working on the project and have a shared connection. I am using fedora 14 and want to setup git on the same machine that I use. Also my partner should be able to access and commit changes to the same as we both would be sharing the code.

I went through some of tut online but believe me I didn't get a clue. So if anyone can help

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You need to get out of the CVS/SVN mentality that you need to "set something up".

To start using git, just create a local repo using git init. That's it.

Your coworkers can clone your repo using git clone, assuming they have ssh access to your machine. Then you can pull from each others repo whenever it is needed.

As your needs grow, you will maybe want to move to a more CVSy workflow with a centralized server. In that case, simply create a third clone (using --bare since you don't need the files to be actually checked out on this repo) on the server, and set your repos to use it as the origin. Then you can "push" to it, which is the equivalent of a CVS/SVN commit operation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.