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
34
votes
6 answers

GitFlow: merge to master first or after prod release?

Learning GitFlow and I have some concerns that I don't see addressed in any of the docs/articles I've read about it. At some point code on the develop branch needs to be deployed to a QA/staging environment and tested rigorously. So with GitFlow you…
smeeb
  • 27,777
  • 57
  • 250
  • 447
34
votes
3 answers

How to duplicate a git repository on gitlab/github without forking?

I've an existing repository on Gitlab / Github. I want a duplicate of that under the same group with a different repo name. Note: Thought the answers might be similar to another question, I was not able to find the said another question by googling,…
Dheeraj Bhaskar
  • 18,633
  • 9
  • 63
  • 66
34
votes
1 answer

How to tell git to ignore all further edit to a single file without removing it from the repo

I have forked a project on github and started messing around with it on my own machine, I want to commit the changes I have made back to my fork on github but without commiting the changes I have made to the .cfg file, since this contains things…
Gabriel Baker
  • 1,209
  • 11
  • 21
34
votes
10 answers

How do I sign out in the Git Bash console in Windows?

I'm using Git, on Windows, version 2.9.2.windows.1. I work on a repository project and when I do a push, it asked me to enter my GitHub username and password. I entered both my GitHub username and password to update the project. In my next push, it…
Lord Rixuel
  • 1,173
  • 6
  • 24
  • 43
34
votes
3 answers

How to change the starting point of a branch?

Usually I create a branch by running a command like git checkout -b [branch-name] [starting-branch]. In one case, I forgot to include the starting-branch, and now I want to correct it. How do I do so after the branch has already been created?
Daniel Kobe
  • 9,376
  • 15
  • 62
  • 109
34
votes
5 answers

Github : I am missing "Settings" menu on the landing page of my repo

The "Settings" menu is supposed to be the last menu, just after the "Graphs" menu. Not having the "Settings" menu interferes with my ability to set Webhooks. And yes, this is my repo - I own it. landing page of my test-repo-travis repo
Vietnhi Phuvan
  • 2,704
  • 2
  • 25
  • 25
34
votes
3 answers

How to sync gitlab with github

I have several developers working on a local Gitlab instance. The client requires that their Github repo is kept updated. So our Gitlab repo should push any commits directly to Github. Any commits to Github should likewise be pulled into Gitlab. I…
mdekkers
  • 592
  • 1
  • 5
  • 12
34
votes
4 answers

Why put the _site-directory of a Jekyll site in .gitignore?

The documentation of Jekyll tells me, that the _site-directory of a Jekyll site contains the compiled version of the site I have created after running Jekyll build Several articles recommend, that I include the _site-directory in my…
Otterfinger
  • 369
  • 1
  • 3
  • 8
34
votes
8 answers

Finding total contributions of a user from GitHub API

I am trying to extract the below info for any user from GitHub. Is there a way/API exposed in GitHub REST API where we can get this information directly?
AnkitG
  • 6,438
  • 7
  • 44
  • 72
34
votes
3 answers

Make private repo contribution history public

I would like to show a client my contribution history towards a project, without making the repo public. Is there a way to do this through github (eg: not taking screenshots of everything). Ideally they could see at least the number of contributions…
Joker
  • 2,119
  • 4
  • 27
  • 38
34
votes
7 answers

How do I get a multipage site from GitHub Pages' automatic generator?

I am using the 'Automatic Generator' of GitHub Pages, and I see it only generates a single index.html and other web resources. How it works if I want to have a multi-page website generated from other markdown files?
34
votes
2 answers

Git: How do I pull a tagged revision into my fork?

I have a fork of a project on github where the main trunk was recently tagged. I want to pull the code from the tagged revision into my fork. How would I do that?
Jon Kruger
  • 4,009
  • 4
  • 33
  • 46
34
votes
8 answers

Notorious Git Error: remote rejected (failed to lock)

I am trying to push to a branch from my local to the origin. The branch name and the path is same. I have been pushing and pulling from this branch for a while and never had a problem. But suddenly, it started behaving badly. Last time when I tried…
Lost
  • 12,007
  • 32
  • 121
  • 193
34
votes
4 answers

Merging Issues with Git

I am using git version 1.7.11.msysgit.0 I created a repository under GitHUB and added a file called as README.md with some text content . Later on , I have installed GIT Client , did a clone to get the server contents on to my machine . Then I…
Pawan
  • 31,545
  • 102
  • 256
  • 434
33
votes
1 answer

How to work with multiple ssh keys

GitHub Users, I am newbie on github and have some issue with git setup. I have 2 account with different users on github and i have setup git on my system 2 times First /.ssh folder (as usual) (contain id_rsa which copied in first account) Second…
Arun Rana
  • 8,426
  • 14
  • 67
  • 107