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
813
votes
75 answers

Pushing to Git returning Error Code 403 fatal: HTTP request failed

I was able to clone a copy of this repo over HTTPS authenticated. I've made some commits and want to push back out to the GitHub server. Using Cygwin on Windows 7 x64. C:\cygwin\home\XPherior\Code\lunch_call>git push Password: error: The requested…
Mike
  • 19,267
  • 11
  • 56
  • 72
801
votes
6 answers

Pull request vs Merge request

What is the difference between a Pull request and a Merge request? In GitHub, it's a Pull Request while in GitLab, for example, it's a Merge Request. So, is there a difference between both of these?
Pacane
  • 20,273
  • 18
  • 60
  • 97
792
votes
10 answers

What is the difference between GitHub and gist?

What is the purpose of gist and how is it different from regular code sharing/maintaining using GitHub?
NSExplorer
  • 11,849
  • 12
  • 49
  • 62
784
votes
15 answers

Delete forked repo from GitHub

I'm starting with git and GitHub and there's a project I'm watching on GitHub. I unintentionally clicked to fork it. Now it appears as a new project to me. I have some doubts about it: I know if commit or do another thing to my forked repo, it will…
axcdnt
  • 14,004
  • 7
  • 26
  • 31
780
votes
3 answers

GitHub satanically messing with Markdown - changes 666 to DCLXVI

My GitHub repository has nothing but a readme in it. In this readme, locally I wrote this: Factoids: - There are about six different ways to do everything in Forked. - There are actually six different ways to enter loops. - There are six…
MD XF
  • 7,860
  • 7
  • 40
  • 71
770
votes
13 answers

How to draw checkbox or tick mark in GitHub Markdown table?

I am able to draw checkbox in Github README.md lists using - [ ] (for unchecked checkbox) - [x] (for checked checkbox) But this is not working in table. Does anybody know how to implement checkbox or checkmark in GitHub Markdown table?
Gaurav Bishnoi
  • 7,963
  • 2
  • 13
  • 12
759
votes
10 answers

Updating a local repository with changes from a GitHub repository

I've got a project checked locally from GitHub, and that remote repository has since had changes made to it. What's the correct command to update my local copy with the latest changes?
Tom
  • 33,626
  • 31
  • 85
  • 109
752
votes
40 answers

Multiple GitHub accounts on the same computer?

Trying to work on both my actual "work" repos, and my repos on GitHub, from my computer. The work account was set up first, and everything works flawlessly. My account, however, cannot seem to push to my repo, which is set up under a different…
Kevin Whitaker
  • 12,435
  • 12
  • 51
  • 89
749
votes
10 answers

How to state in requirements.txt a direct github source

I've installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git which installs it directly from a Github repository. This works fine and I want to have that dependency in my requirements.txt. I've looked at…
Alfe
  • 56,346
  • 20
  • 107
  • 159
728
votes
20 answers

How to add screenshot to READMEs in github repository?

Is it possible to place a screenshot in README file in a GitHub repository? What's the syntax?
daisy
  • 22,498
  • 29
  • 129
  • 265
725
votes
18 answers

Why is a git 'pull request' not called a 'push request'?

The terminology used to merge a branch with an official repository is a 'pull request'. This is confusing, as it appears that I am requesting to push my changes to the official repository. Why is it called a pull request and not a push request?
Alejandro Sanz Díaz
  • 7,842
  • 4
  • 17
  • 23
713
votes
51 answers

gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]

I followed few articles over the pretty attributes on Git 2.10 release note. Going through which upgraded the git to 2.10.0 and made changes to global .gitconfig resulting as follows - [filter "lfs"] clean = git-lfs clean %f smudge =…
Naman
  • 27,789
  • 26
  • 218
  • 353
708
votes
16 answers

Git push existing repo to a new and different remote repo server?

Say I have a repository on git.fedorahosted.org and I want to clone this into my account at github to have my own playground aside from the more "official" repo on fedorahosted. What would be the steps to initially copy that over? Within github…
Heiko Rupp
  • 30,426
  • 13
  • 82
  • 119
699
votes
5 answers

Change name of folder when cloning from GitHub?

When I clone something from Github, it creates a folder with the same name as the app on my computer. Is there a way to change the name? For example, doing this clone creates a long "sign-in-with-twitter" folder: git clone…
Leahcim
  • 40,649
  • 59
  • 195
  • 334
684
votes
34 answers

View markdown files offline

Is there a way to display .md files offline so we know what it will look like once it's uploaded in Github? I'm referring to showing the README.md file as it would come out in Github, and not as for editing purposes. Needs to work on Mac and Windows…
enchance
  • 29,075
  • 35
  • 87
  • 127