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
1 answer

How to see untracked files in git instead of untracked directory

git status shows directory (e.g smaller_fc) is untracked. However, I want to see exactly which files inside the directories (e.g smaller_fc) are untracked. I would like to know if .gitignore is indeed ignoring certain subdir inside smaller_fc…
Jumabek Alikhanov
  • 2,305
  • 3
  • 21
  • 21
32
votes
3 answers

Do GitHub raw urls expire?

Do GitHub raw urls for private repositories expire? I'm referring to the link generated when you click the Raw button while viewing a file on github.com. The link includes a token but there's no info about where that token comes from.
user4722818
  • 423
  • 1
  • 4
  • 6
32
votes
4 answers

How to trigger a Jenkins 2.0 Pipeline job from a GitHub pull request

It looks like the GitHubPullRequestBuilder is not compatible with Jenkins v2.0 pipeline jobs. How do you configure a pipeline job to be triggered from a GitHub pull request event? The documentation on this topic is sparse and I cannot find any…
user6253266
  • 563
  • 2
  • 5
  • 7
32
votes
4 answers

Github oauth multiple authorization callback URL

I want to work in my localhost and my live domain, there is any way to insert more then one callback to github oauth settings? How we solve this problem? Redirect URLs
Bazinga
  • 10,716
  • 6
  • 38
  • 63
32
votes
2 answers

How do I create nested repositories in GitHub?

I am able to create a repository via https://github.com/ (say repo) and have: https://github.com/username/repo.git How do I create another repository (say sub_repo) placed under repo and expectedly…
SparkAndShine
  • 17,001
  • 22
  • 90
  • 134
32
votes
1 answer

How to copy a branch from one GitHub repository to another?

The Author had a respository, called Master. I forked Master, and created branch A on it. Then the Author created an Organization, forked Master to the Organization, and said that that should be the new official main repository. Then he invited…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
32
votes
0 answers

Git - forgot to use --recursive while cloning

I cloned a git repo from github which has submodules in it. I forgot to use the --recursive option while cloning. Is there a way to pull submodules now?
Raghuram Vadapalli
  • 1,190
  • 2
  • 13
  • 27
32
votes
1 answer

Git - remote: fatal: You are on a branch yet to be born

Im trying to setup a hook to push from my desktop to my server. This has worked countless times in the past but now I'm getting an error upon setting up a new site: remote: fatal: You are on a branch yet to be born I've done the same series as…
Gerico
  • 5,079
  • 14
  • 44
  • 85
32
votes
3 answers

Git: split pull request into smaller PR's based upon the new directories in the pull request

I have a monolith of a feature branch. Instead of one massive PR into master I would like to split it up into 3 prs. Ideally I want to pull out some standalone code from the feature branch into a PR by itself. This code is in a new directory and…
user3768149
  • 331
  • 1
  • 3
  • 5
32
votes
2 answers

github fork : your branch is 5 commits ahead how to clean this without pushing

I forked a project on github, in order to send pull requests. The problem is that my way to do was very ... dirty. I worked on a local copy of the fork, created a branch for my modifications and merge it on the master. Then I pushed the master on…
cedlemo
  • 3,205
  • 3
  • 32
  • 50
32
votes
7 answers

Is it possible to host an Eclipse update site on Github?

I am using GitHub to develop an Eclipse plugin. I would like to have a public Eclipse update site for my plugin. Can I use GitHub for this? I know that GitHub can be used for hosting individual files by using the "raw" links provided on the file…
mchr
  • 6,161
  • 6
  • 52
  • 74
32
votes
9 answers

How to use GitHub V3 API to get commit count for a repo?

I am trying to count commits for many large github repos using the API, so I would like to avoid getting the entire list of commits (this way as an example: api.github.com/repos/jasonrudolph/keyboard/commits ) and counting them. If I had the hash of…
SteveCoffman
  • 983
  • 1
  • 8
  • 22
32
votes
1 answer

Python / pip, how do I install a specific version of a git repository from github (what is the correct url)?

I want to install Django 1.7 via pip. It is currently a development version, so not in pips repositories. So I have installed packages from github before using: pip install git+[url here] Now looking at github, I get the clone url on the django…
wobbily_col
  • 11,390
  • 12
  • 62
  • 86
32
votes
2 answers

Connect an issue with a commit after the commit

I did a git commit and pushed to github, but forgot to mention the issue number in the commit (I forgot to write something like ... closes #123). If I had mentioned the issue number in the commit message, github would have connected the commit to…
Dan Halbert
  • 2,761
  • 3
  • 25
  • 28
32
votes
2 answers

Undo several commits in git which have not pushed to remote

I have run git status and # On branch master # Your branch is ahead of 'origin/master' by 4 commits. # (use "git push" to publish your local commits) # # Changes not staged for commit: # (use "git add ..." to update what will be…
Wasswa Samuel
  • 2,139
  • 3
  • 30
  • 54