All Questions
72
questions
0
votes
1
answer
101
views
In a yocto recipe, what selects the release to download from the GitHub repository?
I'm using yocto to build my custom Linux distribution. I need to add hiredis to my distribution. hiredis is a minimalistic C client library for the Redis database, and I need it to access Redis by a C ...
0
votes
1
answer
84
views
Automatically add ssh key based on directory I'm in
I have two GitHub accounts. One for personal use, and another for business. Each is set up with its own SSH key gh_personal and gh_business inside ~/.ssh.
I have a personal project that sits in ~/code/...
0
votes
1
answer
40
views
Efficiently Tracking and Updating configs (dotfiles) from Multiple GitHub Repositories
I'm tracking several GitHub repositories, from which I often fetch configuration files for tools like mpv and hyprland. Given that these repositories frequently receive updates, I'm seeking a more ...
1
vote
1
answer
94
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 ...
0
votes
0
answers
834
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@...
1
vote
0
answers
52
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 ...
-2
votes
1
answer
210
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 ...
1
vote
0
answers
79
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 ...
3
votes
1
answer
2k
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
...
1
vote
0
answers
1k
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).
...
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 ...
0
votes
1
answer
59
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?
-1
votes
1
answer
5k
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 ...
2
votes
1
answer
14k
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 ...
1
vote
2
answers
1k
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 ...
0
votes
1
answer
949
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 ...
-2
votes
2
answers
16k
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 ...
0
votes
2
answers
3k
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'...
0
votes
1
answer
3k
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 ...
0
votes
1
answer
714
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 ...
1
vote
0
answers
975
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 ...
0
votes
1
answer
681
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 ...
2
votes
2
answers
3k
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 ...
0
votes
1
answer
123
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/....
0
votes
1
answer
2k
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 ...
0
votes
1
answer
567
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 ...
0
votes
1
answer
39
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 ...
2
votes
3
answers
9k
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 ...
1
vote
3
answers
1k
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 ...
0
votes
1
answer
31
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
...
1
vote
2
answers
1k
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 ...
0
votes
0
answers
1k
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 $...
0
votes
1
answer
61
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 ...
1
vote
2
answers
17k
views
Unable to access GitHub; Couldn't connect to server
I've been trying to clone a git repository (several, actually) and I'm getting the following error:
fatal: unable to access 'https://github.com/repository-name': Couldn't connect to server
My ...
1
vote
0
answers
63
views
Cannot create Git remote on FreeBsd version 6.0 using git version 1.4
I'm trying to get some code in an old server running freebsd version 6 with git version 1.4.1 on to github. I'm trying to add a remote to the repo referencing GitHub.com repo.
Does anyone have or ...
1
vote
2
answers
820
views
How to show latest release's Git tag with message
Was creating a script to update a Github application in-place and needed to print changes made in the latest Git tagged release so users could make an informed decision about pulling the trigger on ...
3
votes
1
answer
107
views
Stripping a git repo of all committed files that should have been ignored
I recently initiated a git repo and forgot to add a .gitignore file. After my initial commit, my repo has many subdirectories and many files that should have been ignored. Is there an efficient way to ...
0
votes
1
answer
1k
views
Why would README.md show up as an executable?
This is on a Mac but I figure it's a Unixy issue.
I just forked a Github repo (this one) and cloned it to a USB stick (the one that came with the device for which the repo was made). Upon lsing I ...
0
votes
1
answer
3k
views
Old CentOS 5.6, Due to github.com delete the TLSv1/TLSv1.1 support, How can I access to github.com/repo.git using git system
Now I have a cluster with Rocks 5.4 based on CentOS 5.6. When I git push the code to github.com, I run into the errors:
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert ...
5
votes
1
answer
4k
views
Git Client with UI on a Debian system
I known using git on the command line is the preferred method by a lot of Linux users.
But has somebody have successfully installed and used a Git Client with GUI on Debian Based System? (to be ...
1
vote
3
answers
6k
views
How to add and push empty directory in git?
When I run git status git doesn't show the empty directory.
My remote repository is in github.
Can't I add and push empty directory?
1
vote
1
answer
1k
views
Clone a repo from github on RHEL 5
I am using RedHat 5.2 and I need to clone a repo from Github. Sadly, since February 1st of this year, they disabled TLSv1 and TLSv1.1
Unfortunately, Red Hat 5 does not have a point release that ...
10
votes
3
answers
15k
views
Change a directory name in a Github repository remotely, directly from local Linux Git?
This is my Git repository:
https://github.com/benqzq/ulcwe
It has a dir named local and I want to change its name to another name (say, from local to xyz).
Changing it through GitHub GUI manually ...
2
votes
2
answers
1k
views
How do I move things from my Overleaf git repository to my Gitlab git repository?
I've been using mobaXterm on a Windows 10 computer (based in Cygwin) as a terminal to access ROOT and Python scripts/macros. Additionally, my peers and I have been using Gitlab to share these scripts/...
3
votes
2
answers
4k
views
git not using global config file or public key
I've setup a global git username and password while logged in as root on my Fedora server with the following commands:
git config --global user.email "[my email]"
git config --global user.name "[my ...
4
votes
1
answer
3k
views
upload ssh key on github from command line
I have found a way to upload an SSH key to my GitHub account with command line, but there is small problem.
I am able to do this with following command:
curl -u "user:pass" --data '{"title":"test-...
0
votes
1
answer
8k
views
Using git push to create remote branch on the fly without creating local branch [closed]
So here is what i want to achieve:
When I clone a repository from Github and checkout some stable branch, and make some local changes in it, then I don't want to create a local feature branch nor do ...
1
vote
1
answer
202
views
Why you cannot `git pull SHA...650839#file-diff.pach`?
I want to download a portion of this diff: https://gist.github.com/sergeykish/650839#file-dvorak-de-diff. Pseudocode
git pull https://gist.github.com/sergeykish/650839#file-dvorak-de-diff.patch
0
votes
0
answers
126
views
git does not work for some repo but work for others
I encountered a very weird issue for git.
I have three repo.s in github, say repo1, repo2 and repo3.
On machine 1, I used to be able to clone and pull all three repos.
However, suddenly I couldn't ...
0
votes
1
answer
1k
views
Can someone please explain this error I'm getting in my script
I'm trying to create a script which I can set as a cron job which adds all my dotfiles to a folder I've set up as a github repo then push them every evening. My script is the following.
cp ~/.!(|.|...