Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can GitHub for Windows be used locally?

I decided that I need some sort of Revision Control Software for my coding purposes, so I installed GitHub for Windows.

Problem is after I add a repository, copy source code in that folder and then click on commit it wants to commit to GitHub web site and is asking me to provide name and email.

Since my intention for using git is only to have revision control for myself and not to collaborate with other developers, I want to host repositories locally on my computer.

Is hosting locally possible and can I do it with GitHub for Windows?

like image 743
user850010 Avatar asked Sep 01 '12 07:09

user850010


People also ask

Is Git for Windows the same as GitHub?

Git is a version control system to manage source code history. GitHub is a hosting service for Git repositories.

Can I use Git locally without GitHub?

You can use Git without ever using an online host like Github; you would still get the benefits of saved backups and a log of your changes. However, using Github (or the others) allows you store this on a server so that you can access anywhere or share.

Is GitHub available for Windows?

You can install GitHub Desktop on supported operating systems, which currently include macOS 10.12 or later and Windows 7 64-bit or later.


4 Answers

I am using GitHub for Windows locally, so yes, it is possible. However, if you want to push your code you will have to push it to the GitHub website.

What I do is to have my repository on a Dropbox account, so that it is still online, but also private. (As opposed to free GitHub accounts that make your code public). If you are working on your code alone, this should be fine for you, if you just commit to the "local" Dropbox repository.

Also see this question, which helped me when I started this process.

like image 100
hjweide Avatar answered Oct 06 '22 20:10

hjweide


Another option when using git locally (so no"GitHub for Windows"), while wanting to benefit from some of the GitHub features (wiki, administration, browsing, ...), is to install GitLab.
Sure it can be used by several people, which is not your case, but it also great for solo development.

GitLab commits

You can even record your issues on it:

GitLab issue management

like image 42
VonC Avatar answered Oct 06 '22 21:10

VonC


If you only want it local, you don't want to use GitHub.

You want to use git only.

Get msysgit, found at code.google.com/p/msysgit/.

Of course, it means that only git features are available, and github features are not.

Note: all github features are found on the github website, and apart from the social features (issue tracker, wiki), includes the graphs of commit activity, code size increases/decreases, network graph.

Having said that, substitutes for the network graph on GitHub include gitk, and others.

like image 36
ronalchn Avatar answered Oct 06 '22 21:10

ronalchn


Answer: You may want to try TortoiseGit and work with local repositories. In git, you can create a "bare" repository as your main repository locally in an empty folder. This is very easy with TortoiseGit (context menu item).

(Comment: I think you are confusing GitHub [the service] with git [the application].)

like image 39
JohnB Avatar answered Oct 06 '22 19:10

JohnB