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
36
votes
5 answers

Github actions, 401 unauthorized when installing a Github Package with npm or yarn

When I try to install my npm modules from a GitHub action I get the following error: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@xxxx%2fxxxx-analytics - Your request could not be authenticated by the GitHub Packages service. Please…
MLyck
  • 4,959
  • 13
  • 43
  • 74
36
votes
7 answers

How to host image at https://user-images.githubusercontent.com/{path}/{filename}?

I'm a developer, I need many screenshots to put in readme.md file where to store or host it? I found out that some people use https://user-images.githubusercontent.com/{path}/{filename} to host their image and link them with readme.md file. How to…
Pooja Bhatia
  • 371
  • 1
  • 3
  • 4
36
votes
5 answers

Official badge for GitHub actions

Does GitHub have an official 'badge' for their new 'actions' feature? I came across this request on their official repo and there seems to be an official one: https://github.com/{github_id}/{repository}/workflows/{workflow_name}/badge.svg as per…
J. Doe
  • 1,291
  • 2
  • 10
  • 19
36
votes
11 answers

Latest Update brings Github error on pull, push, or sync

In Visual Studio 2019, we have been using the GitHub extension successfully since before release. Now, all of the sudden, when we push, pull, or sync, we receive the following in the Output window: Warning: 'C:\ProgramData/Git/config' has a dubious…
Bullfrog Software
  • 473
  • 1
  • 4
  • 9
36
votes
2 answers

How do I connect a local folder to an existing github repo?

I made a repo on my laptop. It has a project page on github.com. I'm now working on my desktop computer. I manually copied over some files because I didn't think I would need every file from the repo (so I didn't clone the repo onto my desktop). How…
oiwrjgoirjgio
  • 361
  • 1
  • 3
  • 3
36
votes
1 answer

Firebase: Should I add GoogleService-Info.plist to .gitignore?

I'm using Firebase for an iOS project that I want to open source. Should I add GoogleService-Info.plist to .gitignore before I upload I share the project on Github? I know it contains my API key, client id, etc., which might not be safe to expose?
mcfroob
  • 1,044
  • 1
  • 11
  • 13
36
votes
4 answers

Pushing to a different git repo

I have a repo called react. I cloned it into a different repo locally called different-repo. How can I then get different-repo to push remotely to different-repo because currently it is pushing to react. Effectively I want to clone many times from…
The worm
  • 5,580
  • 14
  • 36
  • 49
36
votes
6 answers

Gitkraken Desktop App - Error login: "Please log in to continue"

Who has been working with client GitKraken as GIT, you will know that authentication required? For the application, log in with: firstemail@outlook.com The repository is with: businessemail@bussiness.com It requires credentials to make a pull, but I…
1antares1
  • 1,146
  • 2
  • 11
  • 19
36
votes
2 answers

Android Studio not committing to GitHub

I am trying to use git in Android Studio. If I choose commit changes, it says that it has successfully committed the changed files but those changes do not appear on the GitHub. Instead, if I delete the repository from GitHub and choose Share…
Triceratops
  • 643
  • 2
  • 11
  • 17
36
votes
12 answers

How can I undo discard changes in GitHub Desktop?

Is there any way to undo discard changes in GitHub Desktop, after the Undo button has disappeared? I am talking about GitHub Desktop's undo feature, not git in general.
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
36
votes
5 answers

AWS CodePipeline not able to access Organization's repositories

I am trying to setup Continuous deployments pipelines in AWS Codepipeline. While creating a pipeline I provide "Source provider" as GitHub and then connect to GitHub. I am able to see my public repositories in "Repository" drop-down in create…
36
votes
5 answers

What happens if you force push to a branch with an existing pull request?

I am working on a git branch that is currently part of a closed pull request on github. Subsequently to the initial pull request, I made some additional commits, pushed those commits to github, and then reverted those commits and recommitted them…
fraxture
  • 5,113
  • 4
  • 43
  • 83
36
votes
1 answer

Github push event signature don't match

I'm coding a Webhook for GitHub, and implemented secure verification in KOA.js as: function sign(tok, blob) { var hmac; hmac = crypto .createHmac('sha1', tok) .update(blob) .digest('hex'); return 'sha1=' + hmac; } ... key =…
marcoslhc
  • 1,194
  • 1
  • 17
  • 29
36
votes
1 answer

Difference between collaborator and contributor

In github, I often see these terms and in many cases they are used interchangeably. Can someone please explain the difference between a contributor and a collaborator?
notArefill
  • 786
  • 1
  • 11
  • 27
36
votes
2 answers

gitignore doesn't ignore .suo Visual studio file

I want to do simple thing, ignore .suo file and bin and obj folders from committing to git repo. I've created .gitignore file and it's working for bin and obj folders, but it keeps allowing .suo file committing. The content of gitignore is…
nemo_87
  • 4,523
  • 16
  • 56
  • 102