2022 Developer Survey is open! Take survey.

Questions tagged [github]

GitHub is a website to share code for software development projects that use the Git revision control system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Use v4l2loopback in docker, /dev/video0 missing in docker

I have installed v4l2loopback in the docker container using the following commands apt update apt install -y apt-utils apt install sudo sudo su root - apt-get install -y module-assistant m-a prepare m-...
user avatar
-1 votes
1 answer
33 views

How to download all repositories of a GitHub account to my personal computer without using github cli? [duplicate]

I use WSL Ubuntu 18.04 unchanged. I have one GitHub user with 6 GitHub repositories of that user. Basically I just need to download all my GitHub repositories as I wish to make a local backup of all ...
user avatar
0 votes
0 answers
42 views

How to export all my GitHub account content in one action, delete the account and then import the exported content into a new GitHub account? [migrated]

I think about creating a new GitHub account, free from any previous communal collaboration and yet before I delete my account I want to export all of my repositories in one action instead download ...
user avatar
0 votes
1 answer
86 views

Error while trying to source a .zshrc file

What am I doing wrong here? % echo "export HOMEBREW_GITHUB_API_TOKEN=XXXX">> ~/.zshrc; % source ~.zshrc; zsh: no such user or named directory: .zshrc
user avatar
0 votes
0 answers
19 views

String concatenation failing after personal access token [duplicate]

What specific syntax needs to be changed in the commands below in order for the end result of the commands to produce the expected value of https://ghp_fyrwTOKEN_REDACTEDgugg@github.com/...
user avatar
  • 5,074
0 votes
1 answer
374 views

git clone from https URL fails, says it's 'remote-https' is not a git command and that templates werent' found

I'm working on a CentOS 7.9 GNU/Linux system. I've built and installed a newer version of git (2.34.1 instead of 1.8.3.1 that's bundled with the distribution) under /opt/git/2.34.1, with a symlink to ...
user avatar
  • 7,249
0 votes
0 answers
41 views

How to set a github/gitlab specific user using git config

I'd like to use a GitLab/GitHub specific user, author name and author email. How can I achieve that?
user avatar
0 votes
2 answers
106 views

How to pull git repository on Linux Startup

I want a Kali Linux 2021 (with zsh) machine in a lab to pull the most recent copy of a git repository on startup. I can get the commands to run fine manually, but for the life of me I cannot get them ...
user avatar
0 votes
1 answer
46 views

GIT client for Linux with 2fa

How can I work with GIT repositories under Linux (Debian and Ubuntu) if the repository enforces 2FA? It seems the command line GIT client does not have any support for this. GIT Desktop does not seem ...
user avatar
  • 101
0 votes
1 answer
86 views

Why does my GitHub Action fails and does not respect the OR operator?

I have a GitHub Action that does some tasks, and then pushes back the results. Here's my step: - name: Push production script run: | cd /Project/Migration git config -...
user avatar
0 votes
1 answer
29 views

Execution of a remote Bash script fin GitHub fails

I'm trying to run a bash script on my RaspberryPi 3 model B+ with the following curl: export GITHUB_TOKEN=<my_personal_access_token> curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/...
user avatar
0 votes
1 answer
42 views

Uploading files, some of which are directories, into an empty GitHub repository

I have created a program in my personal computer and I want to upload all its files into an empty GitHub repository. I cannot do so from GitHub GUI because some of these files are directories and ...
user avatar
  • 13
-3 votes
1 answer
2k views

How to extract a zip file inside a GitHub repository?

GitHub GUI allows me to upload a zip file to a repository but it doesn't allow me to extract it. I could upload the files directly (unarchived) but the problem is that some of the files are ...
user avatar
  • 13
0 votes
2 answers
261 views

Transferring all contents of a repository into a directory in another existing repository

I have a GitHub repository (X) and I want to move all its files into a directory in another existing GitHub repository (Y), just like a regular mv ${HOME}/x/* ${HOME}/y/x in a Linux file tree. I don'...
user avatar
  • 13
0 votes
1 answer
173 views

Using SSH Git: key lost after system restart?

I am setting up Git usage on Raspbian. This worked OK: cd .ssh ssh-keygen -t rsa -b 4096 -C "name@asdf.com" eval $(ssh-agent -s) ssh-add ./id_rsa_rpi After I created the keys ...
user avatar
  • 148
1 vote
1 answer
127 views

sed: -e expression #1, char 73: unterminated `s' command

I'm very new to SH and development and I'm blundering my way through the code one error at a time. I've come across this error now that I can not get to the bottom of. Any help would be great! I am ...
user avatar
0 votes
1 answer
49 views

How to make a push script from bash?

I have many repositories on github. I want to automatization push process to github. Now i using script in package.json "script":{ "git push all": "npm run all repo1 repo2 ...
user avatar
  • 103
0 votes
0 answers
20 views

Git-Hub page not publishing

I am trying to publish a page from git hub. The site says that my site is published. But when I click the link its showing a 404 error. after reading help pages I get to know that I need to install ...
user avatar
0 votes
1 answer
150 views

git clone repos with xargs and jq to a subfolder with the name of .owner.login (part of .full_name)

Goal Clone repos into subdirectories named .owner.login (argument in Github's REST API) with jq, git clone, and xargs. Preface I took a code somewhere that allowed me to clone repos with jq, git ...
user avatar
  • 103
0 votes
1 answer
2k views

Error: Cannot perform an interactive login from a non TTY device when login in GitHub Actions

When I am using this command to login docker in GitHub Actions: docker login --username=${{ secrets.ALIYUN_DOCKER_REPO_USER_NAME }} --password=${{ secrets.ALIYUN_DOCKER_REPO_USER_PASSWORD }} registry....
user avatar
  • 351
1 vote
0 answers
260 views

How to store credentials for multiple Github accounts (not individual repos) using libsecret

I'm trying to use 2 github accounts on Ubuntu 18.04. I'm also using personal-access-tokens (PAT). Following the setup I'm trying to achieve. Have 2 github accounts - main and work on the same pc. All ...
user avatar
1 vote
1 answer
524 views

writing login information to the keychain failed

I'm running Linux Debian v5.4.109-26094-g381754fbb430 on my Chromebook. Everything has been working until now. On Sunday, I logged into VSC on another device using my account, then when I return to my ...
user avatar
0 votes
1 answer
195 views

Bulk download of certain files from a GitHub repo

Is it possible to bulk/sequentially download all of the *.tar.gz from a GitHub repo? Instead of manually downloading everything, is it possible to do so using a certain command or would I have to ...
user avatar
  • 770
0 votes
0 answers
76 views

how to execute shell script over ssh?

I'm trying to install opentelemtry package on the remote server over ssh. Actually im executing the script from github actions(using below command). if i run same script on server its wokring fine but ...
user avatar
1 vote
2 answers
32 views

Regarding .deb file linking with github

So, I have successfully made a .deb file of my ROS package using bloom The question is how can I integrate it with GitHub? So that I can update my package in one place and the user can directly update ...
user avatar
0 votes
4 answers
876 views

How do I get a multiline awk script running in bash

To start this script is running it a Github workflow, using shell bash, yaml truncated for readability. I've tried a number of things to make it work as multiline, so I can have comments. set -x ...
user avatar
1 vote
2 answers
2k views

gpg failed to sign the data, failed to write commit object

I have searched the whole universe this error but i could not find any helpful tips. I have created a key using keybase and added my public key to github gpg my gpg --list-secret-keys --keyid-format ...
user avatar
2 votes
0 answers
665 views

ssh percent_expand token %n not working

I'm seeing in the ssh_config man page and on the openssh website that I should be able to use a %n token when locating the identity file for a given host entry. percent_expand tokens used by OpenSSH's ...
user avatar
  • 131
2 votes
1 answer
125 views

GitHub auth and ssh keys on Debian: I've tried everything I could find

GitHub auth continues to fail for me despite my taking all the advice I could find on the Internet. Here are the permissions on my .ssh directory and keys. I have changed the private key permissions ...
user avatar
1 vote
0 answers
26 views

Best way to maintain multiple shared scripts to be deployed across multiple DB servers?

We are in the build phase where we have set of cron jobs running on DB servers. These scripts are being changed constantly. These scripts are supposed to be same across all the other DB servers as ...
user avatar
0 votes
2 answers
10k views

Can't add generated ssh key to ssh agent "Could not open a connection to your authentication agent"

Firstly, yes, I read similar questions and answers here and on stackoverflow. It didn't seem to give any visible result so I'm making a new question. I am using the latest Debian Buster and trying to ...
user avatar
0 votes
1 answer
334 views

I have a problem while installing mdk4 on Arch based system

When I try to install /aicrack-ng/mdk4 I get: error: ld returned 1 exit status make[1]: *** [Makefile:38: mdk4] Error 1 make[1]: Leaving directory '/home/u4/mdk4/src' make: *** [Makefile:10: all] ...
user avatar
0 votes
1 answer
49 views

Git lists my LICENSE and README as removed, but they are still there?

thanks for reading! I was starting to setup my dotfiles configuration with git and GitHub and came across a problem: I am using my $HOME as my git work tree and have the .git-directory in my $HOME/....
user avatar
0 votes
1 answer
589 views

Cat all the files in a git repo without cloning

Is there an existing tool which will do something like this: git-cat https://github.com/AbhishekSinhaCoder/Collection-of-Useful-Scripts then it will run cat on each file in the repo? Something like ...
user avatar
  • 139
0 votes
0 answers
413 views

how to remove a file in Jenkins through Execute Shell [duplicate]

this is the console output of Jenkins' build. Here, you could see that the file Oct Release SQL.txt is present in the path but when I am deleting it by using rm Oct Release SQL.txt, it is not able to ...
user avatar
1 vote
2 answers
973 views

How to download a zipfile from a Github repository

I'm trying to download a zipfile from a Github repository with this command: wget --no-check-certificate https://github.com/brendenlake/omniglot/blob/master/python/images_evaluation.zip -O /tmp/...
user avatar
0 votes
1 answer
425 views

`not a git repository` when following install instructions for picom (a compton fork)

I'm trying to install Picom compositor on Ubuntu and have installed all the dependencies but when I get to the "To Build" section of the guide of GitHub I have to run three commands: $ git ...
user avatar
0 votes
1 answer
36 views

problem in understanding gpg

now there is a project on github that I'm interested in the project author is including his finger print and the public key in a .asc file i want to relate things together as I new to the space how i ...
user avatar
0 votes
1 answer
4k views

git pull/push from/to github in VPN does not work

I am having problems when pulling commits from my github repository from private network (proxy, connected to it with VPN). no_proxy var in env did not help. git pull --rebase ssh: connect to host ...
user avatar
  • 123
1 vote
3 answers
900 views

Webmin not showing running processes after upgrade to Ubuntu Server 20.04 from 18.04

A little background- I recently upgraded my headless Ubuntu Server 18.04 install to 20.04. In that process, webmin somehow was gone from my system. The repository was disabled. So I re-enabled, then ...
user avatar
  • 13
0 votes
1 answer
26 views

Passing git hub user.name through Unix variable

I am performing below operation github_nam="Aviral Vishnoi" git config --global user.name $github_nam It is saving it as user.name=Aviral I want it to store my full name as user.name=Aviral Vishnoi ...
user avatar
-3 votes
1 answer
33 views

How can one see homepage in github.com and on Ubuntu?

I tried to make a homepage on Ubuntu. Why can't I see my homepage on http://jaakkojseppala.github.io/ although my code is in https://github.com/JaakkoJSeppala/Kotisivu/blob/master/index.html ?
user avatar
0 votes
1 answer
123 views

How to install a package to Macaulay 2 in Linux?

Could anyone please help me with exactly how to install the Bertini package to Macaulay 2 by typing lines of commands in a terminal of Linux? Or what command should I type in a terminal of CentOS to,...
user avatar
  • 1
0 votes
1 answer
259 views

System-wide known-hosts file?

I am trying to do a github-git pull from a php script as a www-data user and i am getting "Host key verification failed.". My main user has the host key registered, but my www-data does not as it ...
user avatar
0 votes
0 answers
562 views

fatal: ambiguous argument 'branch' unknown revision or path not in the working tree

I'm working on a script and inside that in one step I'm trying to get the latest commit hash of one of my git branches. So my code looks like: cd $sourceDirectory COMMIT_HASH=$(git rev-parse $...
user avatar
4 votes
2 answers
6k views

How to download tarball from Github

I have this: curl -L "https://github.com/cmtr/cp-go-api/tarball/$commit_id" | tar x -C "$project_dir/" I am just trying to download a tarball from github and extract it to an existing directory. The ...
user avatar
0 votes
1 answer
246 views

How to install “wps-community / wps_i18n” from Github?

I'm new in Linux and trying to install WPS-Office from Github. I've already tried to install it from Snap and from Flatpak but neither works satisfactorily. One, there's correct punctuation (éâã etc) ...
user avatar
1 vote
0 answers
27 views

How git cannot function its .gitignore feature to keep remotely committed file untouched

The .gitignore is not working to keep changes in a remotely committed file intact. I edited README.md file remotely through browser GUI, and when I do git push -f, the README.md is overwritten ...
user avatar
0 votes
1 answer
55 views

RSA handling different between Container and Ubuntu

I have two Ubuntu environments (one Container and one machine), which handle the same rsa private key pretty differently. The first noticable change I see in the logs, is that they identify the type ...
user avatar
5 votes
3 answers
5k views

How to JSON-escape input?

I am trying to come up with a tool what for sending data up to a github gist via the API. The problem is the github api takes the gist content as a single line with all escape sequences written out ...
user avatar
  • 32.6k