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

How to run cloned Django project?

I am a junior software engineer and am quite new to Django. I built this app and am working on a README to explain to others how to fork, clone and setup the app on their own machines. I've gotten stuck while trying to re-create the steps. This is…
allardbrain
  • 599
  • 1
  • 7
  • 14
35
votes
5 answers

How do I do basic authentication with RestClient?

Does anyone know how to do basic authentication with RestClient? I need to create a private repository on GitHub through their RESTful API.
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
35
votes
4 answers

updating local master with remote master

I have a branch that I want to merge to the remote, most up-to-date master. I have a local, outdated master on my computer. I ran git pull upstream master, and it retrieved the remote master, and that was great, exactly what I wanted. Then, without…
jjjjjjjj
  • 4,203
  • 11
  • 53
  • 72
35
votes
4 answers

Git LFS refused to track my large files properly, until I did the following

Problem I had troubles trying to use git LFS, despite the many suggestions here on SO, on Git and GitHub's documentation, and on some Gists I'd run across. My problem was as follows: After performing the necessary steps: git lfs install git lfs…
Mike Williamson
  • 4,915
  • 14
  • 67
  • 104
35
votes
3 answers

Marking a repo as a fork in github, after the fact

We have a project that was forked a while back mostly via a copy/paste method. But there is still significant overlap between the repos. Is it possible to retroactively mark this fork as a fork to github, so that functions like compare and pull…
karlos
  • 3,965
  • 3
  • 16
  • 19
35
votes
3 answers

How make travis-ci execute for some branch?

I have a few branches in my repo and I have the .travis.yml file in a branch A (master branch does not have this file). But travis-CI is not starting the build for branch A. What do I need to do to run travis for this branch? When I create a Pull…
Artur Sh
  • 351
  • 1
  • 3
  • 3
35
votes
5 answers

how to import your own github forked library into android studio

I found a nice open library on GitHub, I imported it into my Android Studio project using Gradle dependencies, but then I realized I need to make little modifications on it. So I forked the library on my GitHub, done the modifications and asked for…
avafab
  • 1,601
  • 3
  • 20
  • 38
35
votes
9 answers

How do I sign out of the desktop version of GitHub?

This seems like a very silly question but I can not find any way to log out of GitHub on the windows desktop application. Does anyone know how?
kayanushpatel
  • 471
  • 2
  • 5
  • 6
35
votes
7 answers

How to prevent phabricator from eating my commit history

Here is the scenario that is pretty much annoying me. Jack works in foobar a software house, Jack is a Working Programmer, he loves coding and commits frequently. Paul who is jack's manager tells him that we are going to start using a new code…
xeon111
  • 1,025
  • 9
  • 20
35
votes
2 answers

Completely remove a file from whole git repository

Using git for a project, I accidentally added to a commit a big .zip file. I didn't notice until I started uploading it to github. When I noticed, I hit ctrl-c, git remove, git commit and uploaded it again (now with the file untracked). I know that…
Paulo Bu
  • 29,294
  • 6
  • 74
  • 73
35
votes
4 answers

setup pre-commit hook jshint

I recently started a project on github. I've managed to setup automatic testing after each commit using Travis. But now I would like to setup a pre-commit hook with jshint too. So if jshint reports errors, the commit should fail. But is this…
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
35
votes
3 answers

git cherry pick - range of commits and exclude some in between

I normally use the following git command to cherryppick a range of gerrits..no how do I exclude a couple gerrits in between.. can the below command be modified or is there one where we can pick a range of gerrits and exclude the ones we want.. git…
carte blanche
  • 10,796
  • 14
  • 46
  • 65
35
votes
1 answer

How to use ssh authentication with github API?

Is there some way to use ssh-based authentication when accessing the GitHub API through the command line (via, e.g., curl, etc.?). FWIW, I tried many variations of the following (varying the way I specified my public ssh key file) but in every case…
kjo
  • 33,683
  • 52
  • 148
  • 265
35
votes
6 answers

Can I add issues to github from the command line?

I'm new to git and I'd like to be able to map plans and progress for my project through github. The problem is, that requires lots of clicking around with a browser on github.com, and I'd like to be able to automate the task somewhat by using a…
Jonathan
  • 10,571
  • 13
  • 67
  • 103
35
votes
1 answer

Gantt Chart for GitHub

We've been using GitHub for 6-months now and have more/less figured out "best practices" with regards on how to put in tasks, milestones, etc. However, from a management point of view, there are a few features that are lacking. For instance, Gantt…
someone1
  • 3,570
  • 2
  • 22
  • 35