Questions tagged [github]

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

361 questions
398
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,528
  • 4
  • 24
  • 22
298
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,091
  • 2
  • 11
  • 6
266
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,361
  • 6
  • 44
  • 58
149
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
  • 2
  • 11
  • 9
141
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,551
  • 2
  • 10
  • 8
139
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,516
  • 2
  • 9
  • 7
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
  • 2
  • 11
  • 9
110
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,839
  • 3
  • 14
  • 11
109
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,117
  • 2
  • 8
  • 4
104
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,121
  • 2
  • 4
  • 8
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,073
  • 1
  • 8
  • 12
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
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
  • 1
  • 5
  • 7
68
votes
1 answer

Gerrit code review, or Github's fork and pull model?

I am starting a software project that will be team AND community developed. I was previously sold on gerrit, but now Github's fork and pull request model seem to almost provide more tools, ways to visualize commits, and ease of use. For someone who…
user1366476
  • 783
  • 1
  • 6
  • 5
67
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,089
  • 4
  • 33
  • 43
1
2 3
24 25