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 have a little network at work with a few computers and a server, I created a bare repository on the server and cloned it from 3 computers.

I can clone/pull/push from computers, it works nice, but the project is not stored on the server and I understood that it should.

Where could it be stored? How can I have it on server too? any suggestion?

share|improve this question
    
Can you push a changeset from one computer to the master repository and then pull that changeset to another computer? –  John Nov 7 '13 at 20:00
    
Do you understand what a bare repository is? –  heavyd Nov 7 '13 at 20:06
    
@John yes, I can. –  Andres Nov 7 '13 at 20:10
    
@heavyd yes, .git directory exists at server and have some other directories –  Andres Nov 7 '13 at 20:10
    
@heavyd I understood that bare is to share a server but I guess the project have to be stored somewhere different to my local computers. Am I wrong? –  Andres Nov 7 '13 at 20:16

2 Answers 2

up vote 0 down vote accepted

If you can push from one computer and pull to another computer, then your project is being stored in the Git repository on the server. You may not understand what that repository is supposed to look like, since it is not human readable in the same way a CVS or RCS repository is, but rest assured, it is there.

share|improve this answer
    
So, how can I see it as github? It is ok for me but my boss want to see something XD –  Andres Nov 7 '13 at 20:37
    
You need to find an appropriate Apache (or web-server-of-your-choice) module that will make it available through a web interface. –  John Nov 7 '13 at 20:43

A bare repository has no working copy. That is why it seems that it is not "there" on the server. But is is indeed on the server. Otherwise you wouldn't be able to push/pull/clone it.

To show the historical information for that bare repo, you have to change directory to the bare repo and run a git log command. E.g. like this:

git log --graph --date-order --decorate --all --stat --no-color

It shouldn't be too difficult to capture this output and make a webpage out of it.

Edit:

Instaweb is a Bourne Shell script that also calls Perl and uses some Perl modules. It will not work on windows out-of-the-box. The same goes for gitweb itself which is a Perl script.

By installing the appropriate software, it should be possible to get gitweb to work on Windows but it will probably be a lot of work.

Git is native to Linux/UNIX and Windows doesn't come with the infrastructure that Linux/UNIX users take for granted. A lot of the web interfaces for git are built for UNIX-like operating systems and depend on the tools that are generally available on those platforms.

There are relatively few frontends for the Microsoft stack. One is WebGitNet. Another is GitStack. Gitblit is based on Java. Have a look at those.

share|improve this answer
    
I have used git log but I want to have something graphically, I tried to used instaweb on windows but I couldn't –  Andres Nov 21 '13 at 21:07
    
@Andres: See updated answer. –  Roland Smith Nov 22 '13 at 23:57

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.