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
4 answers

How to undelete a branch on github?

It seems that I delete a branch on github when I should not do it. What I did was as follow: 1- I add a new .gitignore to my system 2- I use git rm -r --cached . git add . git commit -m ".gitignore is now working" When I did this, I had…
mans
  • 17,104
  • 45
  • 172
  • 321
32
votes
17 answers

git-upload-pack not found

I'm trying to clone an existing github-repository (Git for Windows) to an empty folder using git clone https://github.com/di98jgu/D0016E---Digitalt-projekt.git but keep getting the error message: fatal:…
Viktor Stärn
  • 321
  • 1
  • 3
  • 3
32
votes
8 answers

Github API List all repositories and repo's content

If I was to go about displaying just MY github repositories and their contents on an external website how would i go about doing this? Are there any source code's you can provide me with, if not point me in the right direction? I'm quite a beginner…
ramr
  • 1,019
  • 1
  • 10
  • 17
32
votes
2 answers

Pulling changes from fork parent in Git

How do you pull changes from the parent of a fork in Git, specifically in a github configured project? For example, say I forked http://github.com/originaluser/originalproject into http://github.com/myuser/myproject. I don't plan on myproject on…
Cerin
  • 60,957
  • 96
  • 316
  • 522
32
votes
1 answer

How to stop github from adding new commits to existing pull request

I have created a pull request from my master branch to upstream and now every new commit on that branch automatically attaches itself to this pull request. There was a "Change commits" button on pull request page at the time of creation but it seems…
Marcin Wisnicki
  • 4,511
  • 4
  • 35
  • 57
32
votes
3 answers

How can you add commits to a github pull request of another person to your repo if you can't commit to their branch?

Here's the scenario: I have a public repo A. Bob forks A, adds a few commits to Bob/master and submits a pull request to merge those changes in A/master. I'd like to make a few changes to the proposed pull request before merging it back to…
Javier Soto
  • 4,840
  • 4
  • 26
  • 46
32
votes
7 answers

GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently)

I created a directory, hello_git. In this directory I created a file, hello_git.py, which prints out a "Hello git!" message. Then I made hello_git my current directory in the terminal and entered the following commands one after another in that…
Bentley4
  • 10,678
  • 25
  • 83
  • 134
32
votes
2 answers

"Alias" git authors/committers?

So I've managed to commit to a GitHub project as both domenic and Domenic Denicola . This is annoying, especially for generating summaries. I know about how to change the authors/committers…
Domenic
  • 110,262
  • 41
  • 219
  • 271
32
votes
5 answers

How to install/setup TortoiseGit to work with GitHub

I have just installed Git For Windows, and created my SSH key using SSH through Cygwin. It seems to be working from command-line and the Git For Windows GUI, but now I want to use TortoiseGit. TortoiseGit uses a Putty-like SSH client by default but…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
31
votes
5 answers

Delete GitHub repo's Wiki

I'm new to GitHub. When I clicked a Wiki link a new Wiki was created for my repo. But I don't really need it. If I try to delete its only page, GitHub asks: "Are you sure you want to delete this page?". And I confirm that. And nothing happens, the…
John Doe
  • 9,414
  • 13
  • 50
  • 69
31
votes
8 answers

Changing the default github code font

I am unhappy with the default code font of github which is Courier New. I want to change it to Monaco, which is my preferred monospace font. Is it possible to change my github code font? If yes, how?
missingfaktor
  • 90,905
  • 62
  • 285
  • 365
31
votes
4 answers

Delete Github commit history

Is there anyway for me to delete my github commit history? I don't want to lose all my commits, just the last 10 or so that were pushed to github. I can't seem to figure out how to do this.
Manish Burman
  • 3,069
  • 2
  • 30
  • 35
31
votes
7 answers

IntelliJ - Git is not installed: Cannot identify version of git executable: no response

I'm using IntelliJ on my MacBook and get this message every time I open the app. I already checked the Preferences > Version Control > Git under "Path to Git executable" and set this path to the path that is shown in my terminal for whereis git.…
inconnu
  • 611
  • 1
  • 5
  • 14
31
votes
6 answers

Support for password authentication was removed on August 13, 2021

Over a long period of time I am using tortoise git, today I am not able to use the tortoise git and getting the below error. git.exe pull --progress -v --no-rebase "origin" remote: Support for password authentication was removed on August 13, 2021.…
31
votes
2 answers

In GitHub Actions, how can I trigger on push but only if a PR is active?

Say I have 2 branches, a feature branch and a develop branch. There's no SLA on feature branch normally, meaning I can push broken code up to it all day long and no CI build should be triggered. Then I open a PR into develop. I trigger a CI build…
Greg
  • 10,696
  • 22
  • 68
  • 98