Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use git to version control files in a new project. I have read an overview of git, but it is not clear to me if git hosts the code for you.

I do not want my code to be hosted on a third party computer. I want to be able to host my files on a computer in my internal network, with no chance of the code being stored on a third party server.

How may I set up a repository on my local machine? Do I need to do anything extra to prevent github uploading my files to

share|improve this question
Git and GitHub are not the same thing, though it sounds to me like that's what you're thinking. Git is the version control program, GitHub is a company that specializes in hosting Git repositories. – Andrew Lambert Jul 4 '12 at 12:44
Suggested an edit to make the question clearer. – Julian Knight Jul 4 '12 at 12:48
You might also want to add a tag indicating what platform/OS you are working on. Git on Windows for example is not a particularly easy fit, personally I find Mercurial easier to work with on Windows. – Julian Knight Jul 4 '12 at 12:49
up vote 3 down vote accepted

GitHub is of no use to you if you need to keep your code secret since you are putting the code onto their servers. However, with a paid subscription, you can create "private" projects. The code is still on their servers but only the people you give access to can see it (and any unscrupulous GitHub employees of course since the data is not encrypted by you - though I'm sure that this is very unlikely).

In either case, you still work with the code locally. You check (pull, clone, etc)a copy of the code out to your development machine, make your changes and then push them back to the GitHub copy.

By the sound of it, you don't need or want anything from GitHub, just from git.

Once you have installed git and done the recommended basic configuration. Create a folder for your project and type:

git init

at the command line. The git documentation is pretty reasonable and explains all the basics.

share|improve this answer

It sounds like what you want is just git. You will install a git repository on your server, and use git client software on your development computers. Github is a service that hosts git repositories and code for you, which is not what you want.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .