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
31
votes
5 answers

Github Actions - No Such File or Directory on Any Run Step

I am trying to test out Github Actions for a small web project. I have two projects in the repository, and I want to create a deployment script for only the web client. The repository looks like this: root | |-src | |-API | | | …
jlat96
  • 491
  • 1
  • 5
  • 10
31
votes
5 answers

How to fix the error `found no layout file for "HTML" for "page"` in Hugo CMS?

I recently imported content from my WordPress page into Hugo. When I run hugo serve I get following error messages: WARN 2020/02/17 20:51:06 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts…
user6909438
31
votes
3 answers

How to include files in .gcloudignore that are ignored in .gitignore

I have certain folders that I ignore in my .gitignore as I do not want it to be published on Github. However, these files are essential for when deploying to Google Cloud (local packages). If I take out .gitignore from .gcloudignore then the files…
WJA
  • 6,676
  • 16
  • 85
  • 152
31
votes
2 answers

What are the differences between GitHub Actions and other CI tools like Jenkins?

GitHub announced an upcoming feature, GitHub Actions. I'm positive on the benefits of CI tools like Jenkins for automatic building or testing, which GitHub Actions is aimed to be used for in the future. Having a repository on GitHub and using an…
Bennett Dams
  • 6,463
  • 5
  • 25
  • 45
31
votes
6 answers

Upload local repository to github.com

I have a git repository which exists fully locally inside my PC. I want to create remote clone of it onto the github.com. How can it be done?
Alex Chudinov
  • 654
  • 1
  • 6
  • 12
31
votes
2 answers

How do I remove a GitHub status check?

I have a GitHub status check generated by TeamCity, and I'm trying to delete it (not just disable it). I've tried (line breaks added for readability): curl -u : -X…
jameslafferty
  • 2,152
  • 2
  • 21
  • 25
31
votes
2 answers

Search for code in GitHub using GraphQL (v4 API)

I am using the GitHub's GraphQL API to search for files/code containing a particular word. A simple (contrived) example of a search which in this case is to find the term "beef" in files located in "recipes" (the repo) for "someuser" (the owner for…
Eric Broda
  • 6,701
  • 6
  • 48
  • 72
31
votes
6 answers

How to fix commit order in GitHub pull requests, broken by git rebase?

When I write code I break it into small logical changes that are easy and quick to review. To do so, I use git rebase -i (interactive) to squash, drop and change order of commits. I've noticed this sometimes leads to a different order of commits on…
EliadL
  • 6,230
  • 2
  • 26
  • 43
31
votes
3 answers

How to modify someone else's Github pull request?

Someone created a pull request on my Github repo. It mostly looks good, but I had to make a few minor changes to get it to pass my continuous integration server. Github's on-screen instructions to "review" the request were to run: git checkout -b…
Cerin
  • 60,957
  • 96
  • 316
  • 522
31
votes
1 answer

fatal: I don't handle protocol 'https'

I am trying to push some of my files from staging area to my repository. git remote add origin https://github.com/my_name/filename.git git push -u origin master fatal: I don't handle protocol 'https' I am getting this fatal error. How to fix this…
Kathiravan Natarajan
  • 3,158
  • 6
  • 22
  • 45
31
votes
2 answers

how to get the stash back after pulling

Yesterday I made some changes on the master branch but didn't commit them, today I tried to pull the master but it said I have to commit or stash my changes Please, commit your changes or stash them before you can merge. I stashed them git stash…
farm command
  • 653
  • 3
  • 7
  • 18
31
votes
3 answers

Making a Git project open source when you have secret keys

I have a project on GitHub behind a private repository. I want to make the repo public. However, my project uses secret keys. How can I make the project public while still protecting the "history" of those secret keys? I'm guessing I'm SOL, and…
user213345
31
votes
6 answers

In what circumstances should I add the `-a` flag to the git tag command?

I am aware of the technical differences between the two types of commands (usage without the -a flag creates a lightweight tag which is essentially a branch that never moves, while usage with -a creates a full object in Git's object database which…
j4mie
  • 924
  • 9
  • 9
31
votes
3 answers

Is there an internal alternative to gist.github.com to run behind a firewall?

gist.github.com is incredibly handy, but I'd like to be able run something similar for sharing code samples internally with other developers behind the firewall where I work, so I don't constantly need to be sanitising my code all the time, just to…
Chris Adams
  • 2,721
  • 5
  • 33
  • 45
31
votes
3 answers

Private folder (submodule) in a public repo

I have a public repository. In it I want to use a submodule that is private. If i include this submodule into my public repo, will everyone be able to see the contents of that submodule?
Noitidart
  • 35,443
  • 37
  • 154
  • 323
1 2 3
99
100