Questions tagged [github]

GitHub is a web-based hosting service for software development projects that use Git for version control. Use this tag for questions specific to problems with repositories hosted on GitHub, features specific to GitHub, and using GitHub for collaborating with other users. Do not use this tag for Git-related issues simply because a repository happens to be hosted on GitHub.

GitHub is a web-based Git repository hosting service. It offers all of the distributed revision control and source code management (SCM) functionality of Git, as well as adding its own features.

Unlike Git, which is strictly a command-line tool, GitHub provides a Web-based graphical interface with desktop, as well as mobile, integration. It also provides access control and several features for collaboration such as bug tracking, feature requests, task management, and wikis for each hosted project.

GitHub offers plans for private repositories, as well as free accounts, which are usually used to host open-source software projects. As of January 2023, GitHub reports having more than 100 million users and more than 372 million repositories, making it the largest host of source code in the world.

GitHub Pages is a service they offer that will host static websites using code from a public repository's main branch. The URL format is https://username.github.io.

Source: GitHub Wikipedia

Using pull requests

Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.

Tutorial: Creating a Pull Request

Resources

Graphical clients for certain platforms:

56809 questions
33
votes
1 answer

How to convert files in GitHub repository to a Gist

What I would like to do is the inverse of this question. I have a folder within a GitHub repo that contains a d3 visualization that I would like to continue making changes to. It would be nice to have a "gist" version of this repo to display the…
bill_e
  • 930
  • 2
  • 12
  • 24
33
votes
5 answers

How to set default fork for pull requests?

I have a set of documentation for my company's API, based on the excellent Slate framework from TripIt. Per instructions, I forked their repo and proceeded to customize it. That fork lives here. The obnoxious thing is that when contributors in my…
riney
  • 404
  • 5
  • 12
33
votes
4 answers

x509: certificate signed by unknown authority - both with docker and with github

docker build -t oreng/iojs . INFO[0000] Get https://index.docker.io/v1/repositories/library/iojs/images: x509: certificate signed by unknown authority. my Dockerfile is FROM iojs:latest RUN useradd -ms /bin/bash developer WORKDIR…
user3538553
  • 1,443
  • 3
  • 15
  • 21
33
votes
3 answers

How to remove Github's Wiki default sidebar

Since a few weeks, Github wikis present a compulsory side bar to the right of wiki pages that take up some space for writing. Example: I could not find any button nor instructions on the net to remove this sidebar. Is there a command or…
André Anjos
  • 4,641
  • 2
  • 27
  • 34
33
votes
5 answers

How to publish to Github Pages from Travis CI?

We are compiling Doxygen docs on the travis-ci server and want to push them onto our gh-pages branch. How do I handle the authorization for git push? Does someone have an example for using encrypted variables in travis-ci? Should I go for https…
Stasik
  • 2,568
  • 1
  • 25
  • 44
33
votes
2 answers

Swap "Latest release" on github

I have a repository on a github. Here is the graph: Here is my action sequence: Make 5 commits and push them Add a tag v0.2.0 (git tag -a v0.2.0 -m "release 0.2.0") Push the tag (git push --tags origin master) Make a release by Draft a new release…
n1k1ch
  • 2,594
  • 3
  • 31
  • 35
33
votes
2 answers

Github - link to function in source

I know I can have anchors to a certain line, but if the source changes that line might become irrelevant. Example: ...source.php#L33 < line 33 may become line 40 later :( Is there some way to tell GitHub to link to a certain function or property…
Alex
  • 66,732
  • 177
  • 439
  • 641
33
votes
5 answers

Github shows name instead of a linked username in commits

I just helped a friend to set up a Github account to collaborate on my project. His commits come through, but for some reason on the "Source" page of my repository next to his commit is only his name and not his username (with a link). It seems…
Alexei Boronine
  • 11,061
  • 4
  • 19
  • 14
33
votes
6 answers

How does one find out one's own Repo ID?

While I definitely am not the owner of this private repo, I have been using it as part of a group for a school project, and the teacher is simply asking for the Repo's ID when sending him emails concerning anything. I'm sorry if this is blatantly…
user1438611
33
votes
7 answers

Jenkins giving error while cloning from gitHub

I am new to Jenkins, I am getting following error while cloning repository from GitHub. I tried to search all relevant issues here but could find exact stacktstrace with answers. I am trying to clone repository which requires username and password,…
Sagar
  • 5,315
  • 6
  • 37
  • 66
33
votes
1 answer

What graphing library does GitHub use on its Graphs page?

What graphing library does GitHub use on its Graphs tab? When you navigate to https://github.com/USER/REPOSITORY/graphs/commit-activity the graphs are clean, beautiful, and responsive. If they are using an open source javascript library, I would…
emkman
  • 812
  • 12
  • 21
33
votes
4 answers

Git Compare files before commit

Is there a functionality in git where I could compare my local files to a git source control prior to committing changes?
mallows98
  • 1,529
  • 4
  • 22
  • 37
32
votes
2 answers

How to keep public and private versions of a git repo in sync?

I'm releasing an open-source Rails app on Github (probably MIT license). I also want to maintain a private branch/fork of the project that we will use as part of a pay service. What is the best way to organize the repo(s) in this scenario? And, how…
Callmeed
  • 4,972
  • 5
  • 34
  • 49
32
votes
3 answers

Create git branch, and revert original to upstream state

I recently screwed up my git repo and would like to find out if there is any remedy to it. My setup is this: Central repo on github. Personal repo on github (which is a fork of Central) +Central is setup as remote (upstream/master) +Master…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
32
votes
3 answers

GitHub Copilot - please login to github and try again

For Intellij plugin, GitHub Copilot shows error please login to github and try again. I have already done the following: Authenticated GitHub Copilot with my GitHub user and password. Allowed GitHub Copilot in GitHub account profile. Restarted the…
Exploring
  • 2,493
  • 11
  • 56
  • 97