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.

0
votes
0answers
18 views

I accidentally deleted my files while using git, need some help recovering

I was trying to upload a project to a new git repository and I was receiving an error over and over and nothing I tried could fix it. So I decided, maybe like an idiot, to delete the .git folder. Well,...
-3
votes
0answers
18 views

I need help converting this code to use the fetch api [on hold]

I have tried multiple times trying to use the fetch api for this api project but was unable to get it to work. I was just wondering how would the code be written using fetch api replacing the request....
0
votes
1answer
17 views

YAML header of markdown file generates odd table on top of document

I get a weird output from my YAML header which I do not intend. Instead I expect the normal output with title, author and the table of contents of course. The following code produces the following ...
-1
votes
0answers
36 views

Django git changes to master branch not working on live site

In my Django project, when I push changes to my branch, ml-develop and then merge them into master. The changes work on my local site, but on the live server when I pull from the master branch only ...
0
votes
4answers
33 views

What's the difference between a “pull request” and a “branch”?

What's the difference between a "pull request" and a "branch"? pull request branch
1
vote
0answers
9 views

how to turn off GitHub generated (and broken) tarballs when I do a release?

I am an admin for the PIO project (https://github.com/NCAR/ParallelIO), a set of C/Fortran libraries which is built with autoconf/automake/libtool. When I do a release, GitHub generates a tarball and ...
0
votes
1answer
19 views

Can I use non raw paths with github pages?

I setup a simple hello world git page and put an image in it. However I found that I can not use paths the way I did on Heroku. I placed the image in my root directory and used <img src="_heart....
0
votes
1answer
39 views

How to tell if Github code repo contains malicious code? [on hold]

I am considering adding this repository to my project. Install npm i react-shields-badge --save yarn add react-shields-badge --save Getting Started import Badge from "react-shields-badge"; import "...
1
vote
1answer
35 views

How can I find out why Git is suddenly pushing up large amounts of data?

I've been working on a site's theme that consists only of a few .scss and .php files. I've been pushing my work up to Github with git. Today, as with any other day, I made some changes and went push ...
3
votes
1answer
51 views

Why can't I display images when using github pages?

I have a test site here that has only one image tag which I can not get to load: https://jamie-siminoff-007.github.io/ The index file is: <!DOCTYPE html> <html> <body> <...
1
vote
2answers
29 views

How is it possible to check if there are untracked/ignored files on stash which does not exist anymore locally? ( git, linux )

I was confused, and I called git stash --all and git stash apply stash@{...} multiple times, and also deleted some of the untracked/ignored files. How is it possible to check, if there are files ...
1
vote
1answer
28 views

git - Pass arguments to git with user and password

I need to pass arguments to git with user and password as exemplified below. NOTE I: You can not use git config --global credential.helper 'cache --timeout=1800', for example. NOTE II: The branch [...
0
votes
1answer
26 views

How to undone a discard changes on git?

I was working on the master branch when I note that the changes were too big and I decided that I should make them on another branch. So I did git checkout -b new_branch_name on Git Bash and then (...
0
votes
2answers
21 views

How is it possible to merge local changes with remote, if some of the new files are present in both? ( git )

I created an xyz.js file in my local repository. A colleague also created one with the same name. When I was finished with my work, I tried run the following commands: git shash git pull git stash ...
-2
votes
1answer
17 views

Why can't I commit to git on ios project?

I commited my project and and edit code and again commit, I can't do it. Why is that? How do I commit and push in my ios project? Error message with red color Bhanukas-MBP:NibmConnect bhanukaisuru$...
0
votes
0answers
15 views

How to upload VS solution projects subset to GitHub

I have a single solution with many projects and I would like to upload only single project from that solution + another project on which the first one depends. I'm not very familiar with git. I've ...
0
votes
2answers
29 views

How to “merge whole bunch of codes in WEBSTORM”

I have to merge code between two files in Webstorm and I use Ctrl+D and shift each changes one by one, but instead "Is there any feature to shift all changes on a single click or at once ?" There are ...
0
votes
1answer
11 views

Unable to push local repository to GitHub

Unable to push local repository to GitHub Steps followed: mkdir github-local cd github-local git init touch README.md git add . git commit -m "test commit" git remote add origin git@github.com:...
0
votes
2answers
22 views

How do I migrate a local git repository to github?

I have a git repository (with a github remote). Then, I deleted the repository in github. I want to recreate the git repository in github with full history (i.e. branching, commit and merging ...
0
votes
1answer
21 views

How to send every file from repo to instance?

Currently I have JenkinsFile which is supposed to push the repo to "production" instance if it's master branch or "stage" instance otherwise. if(env.BRANCH_NAME =='master'){ stage('...
0
votes
0answers
8 views

Making requests to GitHub with GitHub App

I have a GitHub App on my profile, and I created an installation token using the JWT token. But after that, I want to make the follow request: POST https://api.github.com/myname/myrepo/git/refs ...
0
votes
0answers
6 views

How to copy files using kohsuke github

I am working with org.kohsuke.github.*; I have a sample repository where I have a commit (sha) with a bunch of files which serve as a template. When I get a request on my app with a repo name xyz, ...
2
votes
2answers
43 views

Git log list commits excluding cherry-picked from the first branch

For example I have this commit history Let say at some point release1 was released to production and after couple of days, release2 branch was released. branch relase1 contains 2 commits (4 & 5) ...
1
vote
1answer
15 views

rebase conflict issue in branch B

I am trying to learn rebase. I have a branch A which is created from develop branch, from the branch A I created a new local branch B. i did a git rebase using this command git pull --rebase origin A ...
0
votes
1answer
13 views

Github webhook is not created when creating a Google Cloud Build trigger

I have many projects which uses Google Cloud Build + Github build pipeline setup. However, there is this one project, which I cannot create a webhook in Github for. It used to work - but commits to ...
0
votes
0answers
9 views

solving the problem of my git-hub regarding not recognizing case sensitive issues

I have a GitHub, two directory is made by names Notebooks and notebooks when I push something it goes to folder Notebooks which is not desired (it works before without problem) now, I just put my ...
-2
votes
0answers
14 views

How to import repositories into gitlab from gitlab pod

I'm trying to migrate few repositories from Github to GitLab through pod I can see already from the pod -->with this path /var/opt/gitlab/git-data/repositories .The list of the repositories appears ...
0
votes
1answer
10 views

How can i use telegram lib to auth and send message to my phone number in java?

Im trying to connect my java project to my phone number, i already have the app_id and the hash generated by Telegram. Im using https://github.com/rubenlagus/TelegramBots this library imported to my ...
0
votes
0answers
9 views

How to get Page/Post Featured Images to show on Twitter Card? Hugo (Academic Theme)

I have been having difficulty getting Twitter Cards to work for my posts featured images. The featured images appear for post url's on both Facebook and Linkedin, yet I can't get the twitter card to ...
0
votes
0answers
8 views

How do you specify additional trusted files with the Jenkins Github Branch Source plugin?

I've created a Jenkins Multibranch Pipeline with the GitHub Branch Source plugin. The Jenkinsfile essentially just calls a Cake Build script (build.ps1, build.cake) that contains all the build/deploy ...
0
votes
1answer
35 views

How add first two character in Textdrawable library?

Hello friend I am using compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' this library in my project i want add first two character inTextDrawableicon if anyone know about this library ...
0
votes
0answers
11 views

Github private repository deploy keys is triggered for all my repositories

I may have an inappropriate use of Deploy keys for a given repository, or github Deploy keys is broken, I don't know. I have created a private repository. For that repository, I created a SSH RSA key ...
0
votes
1answer
17 views

GitHub Gist creation and editing not working in Firefox?

Long story short: I tried to create/edit GitHub Gists with Firefox 67.0 on Windows 10 Firefox 67.0 on Linux Fedora Add-ons: NoScript, Ghostery, LastPass Tried with NoScript and Ghostery disabled and ...
0
votes
1answer
27 views

I want upload a code written in html on a live website using github

I am writing a simple sql code within the body of the html code in notepad. I have saved the notepad as .html in a folder. Now I want others to see the code in the website only .How it looks like ...
0
votes
0answers
12 views

How can I generate transcript from my video with timestamps in json foment

I want to show my video transcript and high lite the text in real time like Youtube. I want some suggestion on how can I get file of transcript with timestamps in Json format. I get the react tool ...
0
votes
0answers
12 views

how to get existing webhooks of a git repository using graphql

I would like to query the existing webhooks on a repo using graphql. But i don't see a field related to this on github introspection, can someone help me with this.
-1
votes
1answer
13 views

How to share Github Pages via link-only option?

I am trying to share my Github Pages only via link (if possible, keeping my repo private), just like the link-only share option of Google Drive. Specifically, only those with the URL can access the ...
2
votes
1answer
23 views

Can you and is it advisable to use the same ssh key for github and gitlab/gitbucket

Can you use the same ssh key for different version control hosting services? And if you can, what are the pros and cons? Scenario: I have ssh keys that I am using on my computer, can I and should I ...
0
votes
0answers
13 views

Teamcity/Github LFS source control import fails

I am having an LFS file checked into GitHub (The actual file stored in Artifactory, Pointer in GitHub) . When running the nuget package step in teamcity, at the source control import stage, i get the ...
1
vote
1answer
54 views

git is not detecting changed files

I changed 2 java files deep in my directory structure relative to the root of the project. At the root of my project i gave command git add --all and then git commit -m "some message". Git only added ...
0
votes
0answers
16 views

How to fix this error popping up on git while I am trying to push the project to a repo?

I am getting this error whenever I try to push my project to github: error: failed to push some refs to 'https://github.com/projectlink.git' hint: Updates were rejected because the remote ...
0
votes
1answer
15 views

Pushed code in an outdated forked branch of git

I am still a bit new to git. I pushed a commit to a forked branch. Tried raising a pull request from the forked branch to the main branch. But the pull request is showing my two old commits which were ...
-2
votes
0answers
8 views

How to remove node_modules from repository on Github [duplicate]

I pushed all node_modules i used for my project to my repository on Github I tried adding node_modules to .gitignore but i did not work
0
votes
1answer
9 views

Print markdown file from GitHub

I wanted to share a simple way to pretty print markdown (*.md) files from GitHub. I found a lot of interesting approaches, mainly in this question. But none of them were updated and working, or what ...
0
votes
1answer
10 views

How do I make my pull request only show the changes since my last pull request on github?

How do I go about making my pull requests have only the changes made on the new branch? Every time I push a branch it has all the changes from the previous branches included in the pull request also. ...
0
votes
1answer
10 views

Need to create a github release on every push in Github repository

I have to configure a Jenkins job, to create a release(in github) on every push on github. Any directions for that will be appreciated.. I have configured a Jenkins job with "GitHub hook trigger for ...
-1
votes
1answer
11 views

Travis-CI does not publish doxygen file-level documentation

I have a project for which I'm building the doxygen documentation in a CI job and publishing using github-pages. However, I'm running into an issue where the documentation for files (i.e. generated ...
0
votes
1answer
42 views

git: 'Repository not found error' for private repository on Github

I am facing the following problems while trying to push a branch in origin. So, what I have done is, created a new branch and add a commit on it. Then tried to push. It shows, fatal: The current ...
0
votes
2answers
27 views

Made changes on a feature branch after it was already merged to master

I have a feature branch that another dev merged into master and I spent the last 2 hours still adding commits to the feature branch before knowing the feature branch was merged earlier already. What ...
2
votes
1answer
20 views

How to get markdown files hosted on github pages to show up on a react app?

I want to show some markdown files that are currently hosted on GitHub pages on my own site. The markdowns are in a hierarchy. The final result to be similar to: https://npr.api-docs.io/2.0/welcome/...

http://mssss.yulina-kosm.ru