GitHub is a web-based hosting service for projects that use the open-source Git revision control system.
Questions tagged [github]
365 questions
404
votes
5 answers
Should I keep my GitHub forked repositories around forever?
So I've forked someone else's repository, made a few changes, submitted a pull request, and my changes made it into the product. Great!
But...what should I do with my forked repository? Is there a compelling reason for me to keep my repository…
Brant Bobby
- 4,588
- 4
- 25
- 22
308
votes
6 answers
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 changes happened where, but squashing it pulls it…
hamstar
- 3,191
278
votes
10 answers
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?
The images in question are small/medium-sized web-friendly images. For the most part, the images won't be changed. The folder…
spong
- 9,471
- 6
- 45
- 58
148
votes
9 answers
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 different purposes, each in a separate branch. The…
Fernando Tan
- 1,527
145
votes
6 answers
The trend of the "develop" branch going away
I've noticed something lately looking at some popular projects on GitHub, that there's no develop branch. And in fact, the GitHub Flow guide doesn't mention it either. From my understanding, master should always be totally stable and reflect…
ffxsam
- 1,591
138
votes
3 answers
Forking a repo on GitHub but allowing new issues on the fork
I have previously forked other people's repos on GitHub, and I have noticed that issues stay with the original repo, and that I can't file issues on the forked repo.
I now have the following task. I am working for a small business where development…
Tom Swirly
- 1,506
136
votes
5 answers
Why do people fork repositories on GitHub?
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.
I've heard of people collecting stamps and…
Aadit M Shah
- 1,618
115
votes
1 answer
If I fork a project on Github that is licensed under MIT, how do 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 company, or just the original author? What are my…
David
- 1,899
110
votes
9 answers
Is it advisable to ask employees to create 'work' GitHub accounts?
I've moved all our company Git repositories to GitHub and now I want to add employees to the projects. Since most employees already have personal GitHub accounts, I'm wondering whether I should ask them to create a work GitHub account. The reason…
fiorenti
- 1,127
- 2
- 8
- 4
106
votes
5 answers
Should I submit a pull request to correct minor typos in a Readme file?
While going through the README file of a GitHub repository I am not a contributor of, I noticed a few minor typos and wondered if I should submit a pull request to correct them or if reviewing the request would take the maintainer too much time to…
Florent Michel
- 1,141
90
votes
11 answers
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 far it seems to cover my needs. What might I be…
histelheim
- 1,081
82
votes
8 answers
What is the relevance of resumes in the age of GitHub, Stack Exchange, Coursera, Udacity, blogs, etc.?
My resume is no longer relevant. It can no longer contain an adequate description of my technical abilities. One can get a much better sense of what I am capable of by looking at my GitHub repositories, my Stack Exchange profiles, and the various…
user7146
71
votes
3 answers
Declaring multiple licences in a GitHub project
For years, I've been a great fan of putting licences on things shared online to make it easier for others to determine if and how they can reuse said things. Before GitHub began to gently 'push' its users to include LICENSE files with their repos, I…
Kay
- 976
69
votes
8 answers
In code review, should I ask to do a refactor outside of the scope in a pull request?
I have been studying the best practices for a code review, and I was wondering what to do in the following scenario:
During a code review, I see potential improvements, but decide that they are outside of the scope of the pull request (PR). Should I…
Tisp
- 817
69
votes
5 answers
As a sole developer (for now), how should I be using Git?
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 commits as a backup to my local files. Sometimes I'll…
VirtuosiMedia
- 4,119
- 4
- 35
- 43