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

In what ways is an SSH Key different from tokens for git authentication?

I recently started getting notifications about the GitHub deprecation of basic authentication using a password to Git - see their blog post https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/. In this post, they say…
Callum Wilson
  • 349
  • 1
  • 3
  • 7
33
votes
7 answers

Why does git submodule update fail with "fatal: remote error: upload-pack: not our ref"?

I have a git repo with multiple submodules. I have tried deleting and adding the submodule in question (scopatz's nanorc), however the error persists across the deletion and re-addition. When I clone the repo to a new location I automatically update…
ifiht
  • 472
  • 1
  • 4
  • 11
33
votes
7 answers

fatal: unable to access ".....": gnutls_handshake() failed: Handshake failed

I've been using Git for the past few months. Recently when I try to clone or to push, I keep on getting this error. I've researched on the internet but so far no solution has worked for me. Does anyone have an idea? External note : Now I moved to…
Harish Kanna
  • 433
  • 1
  • 4
  • 6
33
votes
3 answers

How to delete all Git remote branches except master?

Looking for a command to delete all branches on Git repository except for master and push them to remote. This is to clean up Git repository before making a release as the previous history branches everything else are totally dev changes and doesn't…
willsteel
  • 1,037
  • 2
  • 12
  • 21
33
votes
8 answers

Cannot push on github suddently

Well, it is very weird. I'm using Github protection rules to enforce to make pull requests and to trigger TravisCI for every push. However, because of continuous translation, I need a user who should be able to push without making a pull request and…
David Escalera
  • 475
  • 1
  • 4
  • 8
33
votes
8 answers

How to release a build artifact asset on GitHub with a script?

I am trying to figure out a one-command process for generating a build on GitHub. What I anticipate doing is running some sort of command- make release, say, and the make release script builds up the release artifact and then uploads it to GitHub in…
Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
33
votes
1 answer

Github, forked repositories ahead of master: active users

There is a certain repository that has been forked by many tens of users. However most of them are inactive. The ones that are still active will probably have n commits ahead of master. However when I click on fork I can see all the users that…
Manfredo
  • 1,760
  • 4
  • 25
  • 53
33
votes
1 answer

GitHub GraphQL equivalent of the contents API

Does GitHub's GraphQL API have an equivalent to the contents API? I can't seem to come up with a query that accepts repo owner, repo name and file path and returns the contents of the file. I'm guessing it has something to do with the tree…
Jeremy Danyow
  • 26,470
  • 12
  • 87
  • 133
33
votes
3 answers

NPM: Missing dist and src directories when trying to install directly from a github url

An npm package I am using has been forked on github with some bug fixes and I now want to use the forked code in my project until the fork is merged. In my package.json I change the reference in dependencies from e.g. “cool-package”: "^0.10.0" to…
Tech 75
  • 533
  • 5
  • 11
33
votes
5 answers

Compare old and new versions of force-pushed GitHub pull request

Frequently, my colleagues will make some changes to an open pull request, rebase their local branch against the base branch - often squashing their changes into previous commits as well - and force-push. How can I see what changed between the old…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
33
votes
4 answers

How to fork a branch and not the repository?

How can I fork a branch instead of a complete repository? I wish to copy only the branch https://github.com/COMSYS/contiki/tree/split-buffer and not the complete repository https://github.com/jenshiller/contiki. How to fork a branch in Git? won't…
Shridhar R Kulkarni
  • 6,653
  • 3
  • 37
  • 57
33
votes
1 answer

Jenkins GitHub plugin can't choose my credentials

I got very strange behavior that has never happened before, when I try to configure the GitHub server in Jenkins general configuration to set up webhooks auto. The drop down menu doesn't display my registered credentials. I was always be able to do…
ZEE
  • 5,669
  • 4
  • 35
  • 53
33
votes
4 answers

Amend username for a pushed commit on Github

I made a push to a newly forked git repo on Github but after committing i noticed that my username was incorrect. The username I pushed was "Brock Woolf" but it should have been brockwoolf which is my username on github. I already changed the…
Brock Woolf
  • 46,656
  • 50
  • 121
  • 144
33
votes
3 answers

Are there any good workarounds to the GitHub 100MB file size limit for text files?

I have a 190 MB plain text file that I want to track on github. The text file is a pronounciation lexicon file for our text-to-speech engine. We regularly add and modify lines in the text files, and the diffs are fairly small, so it's perfect for…
josteinaj
  • 477
  • 1
  • 4
  • 11
33
votes
7 answers

How to create a gist on command line

I am trying to create a gist from bash, and I have tried many versions scripts I could get, but none are working. This seems like a correct one, but it does not work also. curl -X POST -d '{"public":true,"files":{"test.txt":{"content":"String file…
trbvm
  • 453
  • 1
  • 4
  • 7