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
32
votes
2 answers

GitHub: Accept Pull Request, But Only Some Commits

Say you've got a user who made a few commits and rolled them into one pull request. You want to accept one of the commits, but reject the others. Is this possible with GitHub?
Calvin Froedge
  • 16,135
  • 16
  • 55
  • 61
32
votes
2 answers

How do I sync tags to a forked github repo?

I forked a repository on github and use the "fetch and merge" button on the web page to sync the latest code to my fork. I noticed that the code gets updated but new tags from the master repro don't end up in my fork. How do I make that happen?
Bobby Dore
  • 499
  • 5
  • 13
32
votes
2 answers

Cannot enable forking on github repo

I have a private repo. I noticed I cannot fork it. I cannot find any information that says I shouldn't be able to. When I go to Options the ability to fix this is disabled. I am guessing you need to pay or something which is fine, but it doesn't say…
pbuzz007
  • 747
  • 1
  • 5
  • 15
32
votes
2 answers

Can I amend a commit made with VSCode to GitHub repo?

I learn Git and Using VSCode and just learn the commit "amend" command and now trying it on origin (GitHub). I can't find any way to do this. Do I need some external tool to do that I don't see any "push amend" from the Git menu in VSCode
Kid
  • 1,869
  • 3
  • 19
  • 48
32
votes
4 answers

Gist is not showing completely in Medium

When I try to embed gist in Medium it shows only the first 11 lines of the gist while code is longer inside gist. How can be this fixed?
NewTech Lover
  • 1,185
  • 4
  • 20
  • 44
32
votes
6 answers

react-native: File android/java_pid14920.hprof is 311.59 MB; this exceeds GitHub's file size limit

I would like to push my project into the github, however i just notice there is a file called java_pid14920.hprof inside the android folder and cause around 300MB remote: error: File android/java_pid14920.hprof is 301.75 MB; this exceeds GitHub's…
FeelRightz
  • 2,777
  • 2
  • 38
  • 73
32
votes
6 answers

Commenting a pull request in a GitHub action

I am trying to get a regular comment inserted in a pull request from a GitHub action. I can't seem to get it right. Octokit, the underlying library, allows you to create reviewComments to PRs, but those refer to a commit and that's not what I want,…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
32
votes
3 answers

How can I "login" to git?

I need to change who git thinks I am so I can push to a different repo ( both are mine. ). Here is a similar issue but I don't want to set any config variables. I just want to login once to my current username. I plan on deleting my other…
user11623870
32
votes
15 answers

Adding private git repo via cPanel

I'm trying to add a private git repo onto cPanel but have ran into permission issues and not sure where I'm going wrong I have generated the SSH keys in cPanel at the 'SSH Access' section. I then added the key onto the private repo in git at the…
NoDachi
  • 874
  • 4
  • 10
  • 20
32
votes
4 answers

Git: Manage each version of my app?

I am using git and github, and I just finished the 1.0 version of my iOS app. From here, I am wondering how git can best serve me. I really am just looking for a best practice here, and what others recommend for managing major versions. Should I…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
32
votes
5 answers

GitHub can't rebase my feature branch: "This branch cannot be rebased due to conflicts"

Even when my feature branch was branched out from the latest version of main, when I attempt to rebase my PR (from feature X to main), I end up seeing: This branch cannot be rebased due to conflicts Rebasing the commits of this branch on top of the…
Jay
  • 4,873
  • 7
  • 72
  • 137
32
votes
8 answers

Error setting certificate verify locations - Github

I am having problem accessing github repository through Git Bash. 2 days ago I was able to push/pull the repositories. Then 1) I created an account on gitlab.com 2) I generated ssh key on my local pc following GitLab and SSH keys using git bash on…
Junaid
  • 2,572
  • 6
  • 41
  • 77
32
votes
3 answers

Git clone in windows much slower than in linux

I have been chasing a problem with extremely slow clone speeds from github on windows. Linux (kali) does not have this problem. I am on a 100/40 megabit/s down up connection. I can obtain close to 8mb/s download no problem. I have plugged my PC…
rollsch
  • 2,518
  • 4
  • 39
  • 65
32
votes
6 answers

How to remove git account from local machine and add new account

I have a github account which is configured in my windows pc. Now I have created a new Github account and want to use the new one. How will I remove my old account from my windows pc and add the new github account ? NOTE: I have edited the gitconfig…
Ebrahim Khalilullah
  • 556
  • 1
  • 6
  • 10
32
votes
1 answer

Syntax Highlighting Combine diff and xxx

I've just seen this (old) post, and I was wondering if we could the same thing using GitHub flavoured markdown: Combine the normal syntax highlighting with the diff one. I tried a few things, like ```python&diff - import that + import…
math2001
  • 4,167
  • 24
  • 35