GitHub is a web-based hosting service for projects that use the open-source Git revision control system.

learn more… | top users | synonyms

19
votes
6answers
3k views

git / other VCS - how often to commit? [duplicate]

I've been a programmer now for over 11 years, and am just starting to get into version control for real. The places I've worked at have never really used version control (one committed at the end of ...
34
votes
4answers
7k views

As a sole developer (for now), how should I be using Git? [closed]

I have multiple projects on Git that I eventually want to bring others into. However, right now it's just me and I use Git and GitHub very simplistically: no branches and basically just using the ...
118
votes
9answers
10k views

Maintain hundreds of customized branches over master branch

Currently we have one master branch for our PHP application in a shared repository. We have more than 500 clients who are subscribers of our software, most of whom have some customization for ...
104
votes
10answers
43k views

Should images be stored in a git repository?

For a distributed team that uses Git and Github as version control, should images also be stored in the git repository? For the most part, the images won't be changed. The folder containing them will ...
1
vote
5answers
835 views

Handling one code base for multiple clients, with their own custom code

I am working on a CMS, in which we have multiple clients that use it, so the code is stored on their servers. Each client has the default code (user manager, pages manager etc), but every client also ...
47
votes
11answers
14k views

Why “Fork me on GitHub”?

I understand how GitHub works, but one thing I've been confused about is, why almost every OSS project lately has a "Fork me on GitHub" link on their homepage. For example, http://jqtjs.com/, ...
14
votes
3answers
6k views

Whats the work flow with 2 people on a project

I come to you as a newbie programmer who's been working on his own project (which is progressing nicely). My co-founder has also been learning how to program and has reached a point where he could ...
26
votes
1answer
7k views

Pulling in changes from a forked repo without a request on GitHub?

I'm new to the social coding community and don't know how to proceed properly in this situation: I've created a GitHub Repository a couple weeks ago. Someone forked the project and has made some ...
5
votes
2answers
2k views

If I fork an open source project and make improvements in the fork, will it or I offend the original authors? [duplicate]

I have identified a couple of open source projects on github.com that are not being kept up to date for many months. I have used them for personal use, and now want to make enhancements to them and ...
13
votes
7answers
3k views

Is it OK to push my code to GitHub while it is still in early development?

I have some projects that are in a very early development state. They are nowhere nearing completion but I do host them (as public repos) on GitHub because: I have multiple computers and I want ...
7
votes
4answers
2k views

people fork my project but don't fetch from upstream - what can I do?

Several people have forked my github repo but they have not fetched-merged from upstream. So my original repo has evolved significantly since the fork took place, and meanwhile these people are ...
4
votes
1answer
667 views

Can a single GitHub repository include source code released under multiple licenses?

I want to gather several sub-projects in a single GitHub repo for the convenience of the users. But I wonder if it's actually possible to have folders in a single repo each of which is covered by a ...
3
votes
3answers
263 views

What can I do to let our team have code reviews of branch merges having hundreds of screens worth of Github diffs?

"Code review" (aka "peer review") seems like a really great idea, so my team started practicing it. For a little while it worked well, but then a co-worker merged a branch in, and asked for a review ...
0
votes
1answer
111 views

Should I open pull requests from a branch on the official repo or my fork?

I have commit access on an open source project named Foo hosted on GitHub (there are many other committers if that is relevant). I would like to make a change via pull request so that someone else ...
67
votes
11answers
20k views

Why learn git when there are GUI apps for GitHub?

Given that GitHub provides GUI apps for both Mac and Windows, what are the benefits of learning to use git from the command line? Currently I'm using their mac app to update my repositories, and so ...
38
votes
4answers
21k views

How does one handle sensitive data when using Github and Heroku?

I am not yet accustomed with the way Git works (And wonder if someone besides Linus is ;)). If you use Heroku to host you application, you need to have your code checked in a Git repo. If you work on ...
65
votes
4answers
8k views

Why squash git commits for pull requests?

Why does every serious Github repo I do pull requests for want me to squash my commits into a single commit? I thought the git log was there so you could inspect all your history and see exactly what ...
66
votes
5answers
23k views

Why do people fork repositories on GitHub? [closed]

I noticed that a lot of GitHub accounts only have repositories which are forked from other accounts. In addition the people who do this usually don't make any contributions to the forked repositories. ...
20
votes
2answers
2k views

Forking project on Github process

There is a project on Github that I mostly like and want to use. There are a few things I want to do differently/remove that doesn't make sense for what I want/need. Also I want to add a few things as ...
7
votes
1answer
5k views

GitHub Organizations for a project spanning multiple repositories?

I've started a project that involves at least three repositories on GitHub. One of the repositories is a generic documentation-and-examples dump, and the other two contain the implementation of two ...
18
votes
5answers
3k views

Is there a purpose for using pull requests on my own repo if I am the only developer?

So I got started with a real project of mine on GitHub and things are going pretty well and ideas are flowing a lot faster than I initially thought. In order to keep things organized, I setup some ...
12
votes
3answers
1k views

How signing out a CLA prevents legal issues in open-source projects?

For example: yeoman. It's licensed under a BSD license. The CLA form (Contributor License Agreement) isn't project specific, and it can be signed electronically. How and what issues can signing out ...
8
votes
1answer
2k views

If I fork a project on Github that is licensed under MIT, how to I handle the attribution and copyright notice?

If I plan to fork an MIT project and significantly modify and rename it, how do I handle the copyright notice above the MIT license on the main License file. Would I list the original author and my ...
7
votes
2answers
829 views

How should I control the versions of my project on GitHub

I am trying to spend as much time as I can on GitHub nowadays (even I am the only person in team at work) to really feel how it is going to be like for a real world corporate application. One ...
17
votes
1answer
3k views

Is it correct to ask contributers to rebase their pull requests on github

I maintain a relatively popular github repo. When a pull request is good to merge I usually ask the author to rebase it to a single commit before I merge it (especially when there have been multiple ...
11
votes
4answers
6k views

Git submodule vs Git clone

I am working on an opensource project on github. It has a subdirectory /Vendor in which it has a copy of several external libraries. Original maintainer of the project updated this directory with ...
4
votes
2answers
359 views

Is it OK to include another person's open-source module in a project that you are uploading to GitHub?

This seems like it would be an obvious "yes". However, I just want to be sure and I've tried googling around to no avail. I am learning Python/Django and uploading all of the projects I'm creating to ...
18
votes
6answers
2k views

Is it worth listing testing or self-learning repositories on my résumé? [closed]

I have a GitHub repository with toy programs that I write when I learn something. For example, when I read an about an algorithms or data structures, I write up a quick implementation of of it to make ...
6
votes
1answer
172 views

Introducing Pull Requests for a 2 person team - merge my own requests?

I'm introducing git to a junior team member (a co-op). They are comfortable now with the basics of adding, committing, pushing and pulling. Now I want to introduce them to pull requests and ...
5
votes
1answer
948 views

Which commit should close a Github issue when multiple commits are responsible?

I want to close issues in Github via my commit messages, but I'm not sure which commit should contain the magic "Closes #XXX" string when multiple commits are responsible for closing the issue. ...
3
votes
1answer
102 views

Forking a GitHub repo and including code from pull requests within a LGPL license?

There is a project hosted at GitHub which is no longer maintained that I want to use for my project. However it has some bugfixes contained within pull requests from other users, and I would like to ...
3
votes
1answer
385 views

Using Unlicensed Code

Say for example, I was to find a github project that was started but not quite complete or that was complete and I wanted to use that code within a larger project but the author of the code has not ...
3
votes
1answer
284 views

git tagging comments - best practices

I've adopted a tagging system of x.x.x.x, and this works fine. However, you also need to leave a comment with your git tag. I've been using descriptions such as "fixes bug Y" or "feature X", but is ...
14
votes
3answers
5k views

github team workflow - to fork or not?

We're a small team of web developers currently using subversion but soon we're making a switch to github. I'm looking at different types of github workflows, and we're not sure if the whole forking ...
11
votes
1answer
505 views

What is proper etiquette for releasing a complete rewrite of an existing project?

I'm new to the opensource world. The project I'm working on resides on Github. (Just for reference) The project I'm working on is a plug-in for the Plex Media Server. I plan to submit my plug-in to ...
10
votes
1answer
1k views

How do I stay compliant with GPL when forking on Github?

I've recently forked a project on Github and made some modifications to it, pushed them back to the forked repository and asked the original developer to pull the changes. (I gather this is the ...
4
votes
2answers
1k views

What is the netiquette for forking other people's open source projects? [duplicate]

I started to get more and more engaged in open source development and I was wondering if there are any guidelines on how to properly document and maintain a fork? For example, let's say you fork a ...
1
vote
2answers
427 views

Is licensing required for public repositories?

I am planning to start the public repository on github. In this repository I will be sharing code which I will be posting in my blog. I have seen lot of repositories without any license. Is it ...