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

Can I have a nested git repo inside a git-ignored folder?

I have a git repo which have following folders: _includes/ _layouts/ _plugins/ _posts/ _site/ _site folder is added in the .gitignore file. Now can I have a git repo inside _site folder with different remote repo for push and pull? Will there…
Andrew-Dufresne
  • 5,464
  • 7
  • 46
  • 68
34
votes
3 answers

"git pull --rebase" leads to "Cannot rebase onto multiple branches"

So, my work environment has precisely one branch with a remote companion on Github. I'm trying to do git pull --rebase in order to prevent git push from creating merge commit messages that don't provide new information to others working on this…
bourgtai
  • 367
  • 1
  • 4
  • 9
34
votes
4 answers

Atom/RSS feeds on Github Issues?

I've been using Google Code and basically everything has an individual RSS feed there. Now I'm trying to migrate over to Github and find the equivalent. I've found the URL for all commits https://github.com/ORG/PROJECT/commits/master.atom but now…
Jon
  • 573
  • 1
  • 6
  • 12
34
votes
1 answer

Can I update a forked project, on git, to the original/master copy?

A few weeks ago i forked a public project on GitHub. Today, I wish to try some stuff on it BUT i want to make sure the copy I use is the most recent. Can I update my fork, first? And what happens if there's changes to the fork AFTER i've started my…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
34
votes
5 answers

Where did git put a clone

I'm pretty new to git. For a class the teacher posted a link to clone a project file it said git clone git://github.com/foo I typed the command and it seemed to work. Problem is I don't know where the file is! If I type the command again it says…
bb2
  • 2,872
  • 7
  • 37
  • 45
34
votes
5 answers

Add binary distribution to github's download link

Github has this download link on the repositories. How can I add binary distributions to this list? I cannot find any info on help.github, so a link to some documentation would be helpful.
simendsjo
  • 4,739
  • 2
  • 25
  • 53
34
votes
5 answers

Using syntax highlight from GitHub

What syntax highlighting is used on GitHub (for HTML, CSS, JavaScript, C#) when viewing source code-file and is it available for the public to use? It works on the page and it works when embedding on a page (from a Gist), like this:
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130
34
votes
1 answer

What is GitHub's public GPG key?

If you make an edit through GitHub's website, or merge a pull request, then the resulting commits are automatically signed with GitHub's GPG key. It looks like this: I would like to have the full public key so that I can add it as a trusted key on…
Aaron Franke
  • 3,268
  • 4
  • 31
  • 51
34
votes
2 answers

Running a GitHub Actions step only if previous step has run

I've set up a workflow in GitHub actions to run my tests and create an artifact of the test coverage. The stripped down version of my YAML file looks like this: name: Build on: [pull_request] jobs: build: runs-on: ubuntu-latest steps: …
34
votes
3 answers

GitHub Actions CI Conditional Regex

I'm trying to move my CI workflow from CircleCI to GitHub Actions. The last major struggle I'm facing is with deployment. Currently my workflow is such that when I push a tag to my GitHub repo, it will run the tests, then run the deployment. Only…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
34
votes
4 answers

Yarn can't find private Github npm registry

I signed up for the Github private npm registry beta and followed their instruction: https://github.com/features/package-registry Works great with npm but I'd prefer using yarn. And while npm has no issues finding the registered package, yarn can't…
Marty Mitchener
  • 580
  • 2
  • 5
  • 16
34
votes
4 answers

How to handle your first Pull Request on GitHub?

I'm relatively new to Git. My knowledge thus far includes git add push commit. That's about it, and until now it served me well enough. :) However this morning someone sent me a pull request, which as I've read means someone forked my repository,…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
34
votes
2 answers

How to do a pull request in GitHub with only the latest commit in the master branch of my forked repository

I forked a repository on github. I made some changes and did a pull request. Now I made some other changes and want to do a new pull request, but on the preview screen before doing the pull request it shows the old commits too (the ones that were…
Felipe Brahm
  • 3,162
  • 1
  • 28
  • 42
34
votes
1 answer

Has Bitbucket the git-blame on a line feature similiar to GitHub?

Can I view the of a file/ a line who committed what and when on bitbucket? Can't find these functions on the site. Thank you!
nunuh89
  • 543
  • 1
  • 5
  • 11
34
votes
2 answers

GitHub - prevent collaborators from using push -f

Is there a way to prevent force push into a branch or repository? I want to stop important branches from having their history rewritten either accidentally or intentionally. How do people deal with this in larger development teams? Ideally, in…
Alex G
  • 522
  • 1
  • 5
  • 13