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
1 answer
39 views

password to linux changed after deleting/manipulation with ssh

Unfortunatelly I made mistake somewhere but can't get where. I had issues with ssh and github, tried different things and they didn't work. Later I decided .. i think.. moved file i balieve it was ...
Maks Chornyi's user avatar
0 votes
1 answer
39 views

Installing PongoOS fork on Debian results in no makefile binaries

I am attempting to install this fork of PongoOS onto Debian 12.1 using these instructions and the last step I have taken was enter the following into the terminal: EMBEDDED_CC=clang EMBEDDED_LDFLAGS=-...
CSS_Lewis's user avatar
1 vote
2 answers
88 views

chmod command output: cannot access '/root/server/app.sock': No such file or directory while file exists

I run the command sudo chmod 777 ~/server/app.sock on my server and it works appropriately and changes the permission. However, when I run this command through github action, it doesn't work and says: ...
hermi's user avatar
  • 11
0 votes
1 answer
24 views

prompt in git hook?

I'm trying to implement an option to skip a pre-commit hook (which will be considered pass and perform the commit) in a pre-commit hook. Everything is running fine except the prompt which reads an ...
Tomáš Pilný's user avatar
0 votes
0 answers
52 views

Examples of high MaxStartups or Max Session in use

I run a bitbucket instance where there are 4000s+ unique users per day, however sometimes users receive the error: kex_exchange_identification: Connection closed by remote host - the current config ...
andyarn's user avatar
0 votes
0 answers
302 views

fatal: unable to auto-detect email address (got 'root@pegasusv.(none)')?

pegasus@pegasusv:/linux_work/linux_stable$ sudo git commit -a [sudo] password for pegasus: Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@...
Zeshan Ahmed Nobin's user avatar
2 votes
1 answer
233 views

SSH: Permission Denied github

I created a script to create remote repositories on github and in case the machine has more than one user who access the script to create remote repositories and for that I need a github token key I ...
Jean's user avatar
  • 23
1 vote
3 answers
264 views

Extract version number from github repo

Hello I'm trying to extract a version number from a github release site. Which I later need for a Ansible role. For example I want to get the exact neovim version number of the latest release from ...
edinazzu's user avatar
1 vote
0 answers
49 views

Older version of git sporadically finds bad RSA host keys in known_hosts

I'm using an older version of git (2.8) on an older box (RHEL6), and I’m noticing some odd behavior. When the recent github RSA key exposure incident first happened and I did a git pull, I saw error ...
John Gordon's user avatar
2 votes
0 answers
165 views

Error when trying to clone repo from GitHub Desktop on SteamOS

I'm having an issue with GitHub Desktop when trying to clone a repo on SteamOS. It's a new Steam Deck. Fairly fresh out of the box. I installed GitHub Desktop from the Discover store. In GitHub ...
axzr's user avatar
  • 121
-2 votes
1 answer
136 views

Is Git hiding files on my computer?

I've accidentally created two branches for my Git repository: main and master, which I now need to merge. However, when using ls on the command line while checked into main branch, some files on my ...
pilks7's user avatar
  • 9
1 vote
0 answers
334 views

Command in Github Action unexpected output

I'm trying to compile all my C projects within an Action on GitHub. This is the command I'm running: \! find . -name Makefile -type f -execdir make re \; 2>&1 | grep -qF 'Error 1' It exits 1 ...
Herbie Vine's user avatar
1 vote
0 answers
147 views

Whenever I commit and push a file to github, a duplicated ending with ~ appears in my local and remote repository

I am a beginner in Linux and I am still navigating my way aroung the terminal and file manipulation. Whenever I commit and push a file to my github, a duplicate is created alongside it. Can I delete ...
Omari's user avatar
  • 11
1 vote
0 answers
54 views

How to remove authentication with gpg-agent/git-credentialmanager to pus to a public repo?

I have a azure devops repository which I have made public recently. Before it was private and I used the git credential manager and gpg-agent. If I want to push my changes I will get the error: $ git ...
chko's user avatar
  • 11
2 votes
1 answer
309 views

Why git asks for username when ran inside a script?

I have a Push command, that runs this script: FindGits | { while read gitFolder; do parent=$(dirname $gitFolder); if [[ `git -C $parent status --porcelain` ]]; then ...
Ali Radan's user avatar
2 votes
1 answer
512 views

Ubuntu-latest GitHub runner cannot Connect to localhost API

What specifically needs to be changed in the below in order for a program running on an Ubuntu-latest GitHub runner to successfully connect to a Twisted web server running on localhost of the same ...
CodeMed's user avatar
  • 5,099
1 vote
0 answers
55 views

Random timeout on basic operation in bash

Context I have a GitHub Action running on a linux machine. It does the following (might want to skip to problem first as most of this might be irrelevant): pwd: /home/runner/work/net.twisterrob....
TWiStErRob's user avatar
2 votes
1 answer
2k views

stable alternative to apt-get in scripts?

apt-get gives the following warning when some of the commands below are run by a GitHub Action on an Ubuntu-lastest GitHub runner: WARNING: apt does not have a stable CLI interface. Use with caution ...
CodeMed's user avatar
  • 5,099
0 votes
0 answers
356 views

Github Actions- unable to set environment variable using expressions

I had written below Github Actions where I am unable to set environment variable "URL". # This is a basic workflow to help you get started with running Fortify scans using ScanCentral into ...
Mahesh's user avatar
  • 1
1 vote
1 answer
103 views

Broken `cron` gh-action workflow

I write as an exercise the GitHub action workflow below. name: Cron CI # Controls when the workflow will run on: # Triggers the workflow every day minutes schedule: - cron: "01 10 * * 6,...
Bruno Peixoto's user avatar
1 vote
0 answers
342 views

Can't ping github.com and duckduckgo.com, able to resolve their DNS

just finished setting up arch linux for the first time. The problem I was facing is originally is slow download speed from github when using git clone When I looked further I saw I couldn't ping ...
EsharkyTheGreat's user avatar
1 vote
0 answers
673 views

Unable to git pull with ssh, even with properly configured ssh key

Long short story, when I try to git pull, the following error is showing : $ git pull key_from_blob: remaining bytes in key blob 36 key_to_blob: unsupported key type 9 Permission denied (publickey). ...
Kyrela's user avatar
  • 41
1 vote
1 answer
56 views

Bash - How to make dynamic menu selection without eval

I'm making a script for Docker environments, and I'm a bit stuck with a pigeonhole I've gotten myself into. #!/bin/bash set -euo pipefail # Variables gituser="modem7" gitrepo="docker-...
Modem7's user avatar
  • 11
1 vote
0 answers
27 views

How can I compile TCLAP and link it with CLUSCO?

I need to use an app named CLUSCO, whose git is hosted in BitBucket. This app uses a library called TCLAP, whose git is hosted in GitHub. I tried to follow the installation instruction supplied by ...
user366312's user avatar
2 votes
1 answer
236 views

Ubuntu Server - can't connect to github

I am unable to use github from the command line on a newly installed Ubuntu server. Pinging and curling github fails but works fine for other hosts. OS: Ubuntu 22.04.1 LTS Ping test # google works ...
user9074332's user avatar
1 vote
1 answer
107 views

bash unable to interpret cli command that uses curly braces in GitHub Ubuntu

What specific syntax needs to be changed in the aws s3api cli command below in order for the bash shell to interpret the command properly? The environment is an ubuntu-latest GitHub runner executing a ...
CodeMed's user avatar
  • 5,099
2 votes
2 answers
3k views

Connection to github.com closed by remote host

Problem is exactly as reported in HPC ssh "connection closed by remote host" Connection to host closed by remote host. Exit status -1 But it is not the "ssh_exchange_identification:&...
xpt's user avatar
  • 1,232
0 votes
1 answer
87 views

bash not parsing multi-word string into cli command

What specifically needs to change in the -f body=$DESCRIPTION flag of the gh api CLI command in the GitHub workflow below in order for a multi-word string such as "Lots of new stuff" to ...
CodeMed's user avatar
  • 5,099
0 votes
1 answer
298 views

How to copy files to sourceforge in non-interactive request for password?

I want to automate the copying of files to Sourceforge with GitHub Actions. I get problems when I copy files in non-interactive mode. For eg: scp <file on laptop> <folder in sourceforge host&...
Rahul Khinchi's user avatar
0 votes
1 answer
1k views

Add executable to Ubuntu-latest PATH using GitHub workflow

This problem is reproduceable in any GitHub account using the minimal code given below. The two files myapp.py and .github/workflows/myworkflow.yaml given below are all you need to reproduce this in ...
CodeMed's user avatar
  • 5,099
2 votes
1 answer
2k views

Is it possible to download a file without knowing full name?

Sorry for asking what is probably a noob question. I'm new to the GitHub and DevOps environments, and I've been tasked with automating some stuff. I've found a project on GitHub that is still ...
Adrian's user avatar
  • 29
0 votes
1 answer
346 views

Persistent os-level environment variables in ubuntu-latest GitHub runner

What specific syntax must be changed below in order to set an OS-level environment variable that can be consumed by a python app through os.environ in an ubuntu-latest GitHub runner from a GitHub ...
CodeMed's user avatar
  • 5,099
6 votes
1 answer
2k views

Getting jq error when using variable in command line

I am using jq to get the tag_name index with the script: curl \ https://api.github.com/repos/checkstyle/checkstyle/releases \ -H "Authorization: token $GITHUB_TOKEN" \ -o /var/tmp/cs-...
Rahul Khinchi's user avatar
2 votes
0 answers
457 views

wine32 installation error on ubuntu 22.04 github actions

I'm trying to install wine32 on ubuntu 22.04 (github actions) but I'm getting this error: apt : Depends: libapt-pkg6.0 (>= 2.4.5) but it is not going to be installed Depends: libsystemd0 ...
GeorgeV22's user avatar
0 votes
1 answer
44 views

How can I set up my Github Account to work in each terminal session?

Every time I want to clone one of my repos, I have to enter my Github account name and access token. How can I add my github account to my terminal?
nubels's user avatar
  • 1
0 votes
0 answers
742 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-...
Umar Mukhtar's user avatar
0 votes
1 answer
3k 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 ...
Arcticooling's user avatar
2 votes
1 answer
11k 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 ...
einpoklum's user avatar
  • 8,852
0 votes
2 answers
886 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 ...
hypercoyote's user avatar
1 vote
1 answer
187 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 ...
Nimral's user avatar
  • 111
0 votes
1 answer
2k 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 -...
Saeed Neamati's user avatar
0 votes
1 answer
49 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/...
Ash Fletcher's user avatar
0 votes
1 answer
652 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 ...
Roiko's user avatar
  • 23
-2 votes
1 answer
12k 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 ...
Roiko's user avatar
  • 23
0 votes
2 answers
2k 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'...
Roiko's user avatar
  • 23
0 votes
1 answer
2k 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 "[email protected]" eval $(ssh-agent -s) ssh-add ./id_rsa_rpi After I created the keys ...
Danijel's user avatar
  • 168
2 votes
1 answer
1k 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 ...
Matt Holdgate's user avatar
0 votes
1 answer
321 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 ...
Sergey's user avatar
  • 103
0 votes
1 answer
597 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 ...
Xyd's user avatar
  • 103
0 votes
2 answers
7k 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....
Dolphin's user avatar
  • 499