Questions tagged [git]
Git is a distributed revision control system with an emphasis on speed.
821
questions
0
votes
1
answer
2k
views
fatal: unable to access 'https://github.com/gitaccount/repo-name.git/': Operation timed out after 300017 milliseconds with 0 out of 0 bytes received
I am unable to do git clone from github.com from Ubuntu 20.04.1 LTS, Tried all solutions from other answers.
Disabled ubuntu firewall, and am on home network, so no other firewalls.On windows ...
0
votes
1
answer
949
views
SSH Key doesn't work with any GIT repo
Just installed Ubuntu 20.04.02LTS. I installed GIT, generated a new .ssh with this example from DigitalOcean, after which I added the new key (public) to my github, bitbucket and private git repo, and ...
1
vote
0
answers
2k
views
"fatal: cloning the git-repo repository failed, will remove '.repo/repo' " upon running repo init <...>
I've been running into this issue every time I run a repo init -u https://source.codeaurora.org/quic/le/le/manifest.git -b [branch] -m [manifest] command.
>>
>> repo 1.12.16
stderr:...
1
vote
2
answers
4k
views
allow git acess under chroot
The server has set up chroot environment.Users can access the server by sftp.
More than that,they need to use git aslo.I was following this link creating-chroot-jail-ssh-access,copied /bin/bash /usr/...
4
votes
2
answers
19k
views
Using authorized_keys with git
I have transfered my ssh key from my root to my user account by ssh-copy-id command
so now I have these files in my .ssh folder
user@user-php:~/.ssh$ ls
authorized_keys config id_rsa id_rsa.pub ...
0
votes
1
answer
110
views
What is the best way to automate my linux setup
At work, I had to rebuild my WSL a number of times and I was wondering what will be the best way to automate my Ubuntu setup. For .dotfiles files, I'm using the bare-git approach (https://www....
34
votes
8
answers
14k
views
How to alias 'git' to 'g' so that bash-completion rules are preserved?
If I do this:
alias g='git'
I loose all completion rules (i.e. branches and remotes are no longer being automatically completed when I hit TAB after typing, for example g push o).
0
votes
1
answer
3k
views
fatal: read error: Connection reset by peer
vijay13@ubuntu:~$ git clone git://anongit.kde.org/plasma-mediacenter
Cloning into 'plasma-mediacenter'...
fatal: read error: Connection reset by peer
Can someone please help me to get rid of above ...
8
votes
2
answers
12k
views
Ubuntu 12.04 Gitosis no longer available
I have an Ubuntu 11.10 box running git server using gitosis, installed as described here https://help.ubuntu.com/community/Git
I just tried upgrading to 12.04 doing a do-release-upgrade, and the ...
3
votes
1
answer
5k
views
Copying all firmware files from GitHub repository kernel/git/firmware/linux-firmware to /lib/firmware
I copied the whole content of https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git to the /lib/firmware folder of my system.
I do not face any issues and it fixed the missing ...
1
vote
1
answer
558
views
"E: Unable to locate package fluxion" : This error is showing when i try to uninstall fluxion
Here is the screenshot of the command prompt
I am using Linux 18.04. I used this sudo git clone https://github.com/PNPtutorials/fluxion.git command to colne the file. After git clone i changed the ...
15
votes
2
answers
65k
views
Cannot install Git on Ubuntu 16.04 LTS
When I was trying to install Git on Ubuntu 16.04, I get an error. The command I used to install git is:
sudo apt-get install git
The error I encountered was:
Reading package lists... Done
Building ...
1
vote
1
answer
59
views
Pulling and committing with Rstudio and github on a windows subsystem for linux
I have a windows 10 running an ubuntu subsystem and for a stats class/coding course (I am a bioinformatics student) we will be doign a term long group project using Rstudio and collaborating via ...
1
vote
0
answers
186
views
Understanding TestDisk behaviour on disappeared files from a git / docker folder
I have totally messed up a git / docker local folder, and some of my files (curiously only those which were not tracked by git) have suddenly disappeared from one data subfolder ; I cannot see them ...
2
votes
0
answers
2k
views
I can not do repo init for android_manifest.git
I am working with khadas VIM3 development board and I am trying to sync the android pie SDK but it is not working. I am getting syntax error while I do repo init.
I posted this question on the Khadas ...
9
votes
3
answers
12k
views
Which Git GUI can show list of files inside stash?
It was very easy in Sourcetree but this tool is not available on Linux
2
votes
0
answers
5k
views
error: unable to create file ....: Invalid argument
I recently passed Xubuntu from 16.04 to 20.04. A simple command like:
git pull
generates the following errors (all similar among them):
error: unable to create file Template/images/N<X.pdf: ...
2
votes
1
answer
10k
views
Clone from GitHub.com “Temporary failure in name resolution” error
I encountered problems downloading Xilinx from GitHub. I have googled and tried various methods to clone it. Below is the error:
mohsin@mohsin-VirtualBox:~$ git clone https://github.com/Xilinx/linux-...
27
votes
3
answers
125k
views
E: Unable to locate package git
I am trying to install git, I used sudo apt-get install git command and it results:
E: Unable to locate package git
This question have been asked by many people but not a single answer has fixed my ...
2
votes
1
answer
4k
views
How do I configure gitolite3 to use the git account on Ubuntu LTS 16?
The Ubuntu git help provides instructions for configuring gitolite, but Ubuntu 16 LTS delivers gitolite3. The gitolite3 install guide refers the user to their operating system package distribution ...
0
votes
1
answer
151
views
Is it possible to simultaneously use TortoiseHG (for Mercurial) and RabbitVCS (for Git) in Caja with Cyrillic file-names?
I run Ubuntu MATE 16.04.6 LTS with Caja file-manager.
I have added TortoiseHG python extension for Caja file-manager by following my method. It works great with Mercurial repositories.
Currently I ...
-1
votes
2
answers
4k
views
Instructions for installing `youtube-dl` from source code - Ubuntu 20.04
I have recently had some issues installing youtube-dl on Ubuntu 20.04. THIS IS NOT THE SAME QUESTION. Those issues have been resolved, but I am not:
a Python user
comfortable with snap yet
And it ...
22
votes
3
answers
6k
views
Can I scroll to new lines using mouse wheel inside git diff?
I'm using Ubuntu 16.04 default terminal (it's GNOME I believe?)
The problem I'm facing is that when I use git diff command to inspect my local changes I can scroll up/down using the mouse wheel, but ...
0
votes
0
answers
42
views
hide folder (.git) in a shared server from all other users
I am working in a server shared by several other users. There is a particular folder for us to put our project datasets in e.g.
/userAdataset1
/userBdataset1
/mydataset1
/mydataset2
My datasets have ...
0
votes
0
answers
1k
views
How do I forget my credentials for git from the command line?
I am trying to forget my credentials for git so I can close a repository using a PAT.
~# git clone [email protected]:your-username/atom.git
Cloning into 'atom'...
Warning: Permanently added the RSA host ...
2
votes
2
answers
2k
views
What is the best practice of customizing the Bash prompt (aka the PS1 environment variable)?
I am trying to add Git branch name to my Bash prompt by changing the PS1 variable like this:
PS1=`echo "$PS1" | sed 's/\\\\\$ $/\$(__git_ps1)\\\\\$ /'`
And if I understand correctly, it is not ...
0
votes
1
answer
47
views
How to run Git projects on SDD (non Root)
So I have a dual boot partition Windows/Ubuntu and I code in the Ubuntu OS. I have all my projects under the HDD but it's getting full and I would like to pass them onto the SSD (where I have loads of ...
20
votes
4
answers
13k
views
How do you install hub (git wrapper) on Ubuntu with autocomplete and man documentation working?
According to the official docs you just download a pre-compiled binary but this would leave things like man documentation and autocompletion not working.
2
votes
0
answers
51
views
'$ git' autocomplete seems to print colour code
When typing $ git in my CLI and pressing tab stop for autocompletion, I get the following sugestions, which look like having extra colour highlighting for bash text.
$ git
^[[01;31m^[[K ...
1
vote
1
answer
3k
views
How to uninstall bookworm when I installed it from source?
I am a new Linux user and i can't uninstall bookworm. I installed it using the steps recommended here to install from source:
Run the command below to install the above on Ubuntu and Debian distros:
...
11
votes
3
answers
121k
views
How to retrive a single file from github using git [closed]
I would like to learn more about this code, but I am not able to import it into my computer. How could I clone this file with git? The file is simply:
https://github.com/tensorflow/tensorflow/blob/...
0
votes
0
answers
15
views
E: Package 'git' has no installation candidate, how to resolve? [duplicate]
I am facing below issue while installation time of git
sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git is not ...
0
votes
0
answers
154
views
Remote command gives different output (permission denied)
When I connect to remote server and execute command
git ls-remote [email protected]:repo/repo.git HEAD
it is working fine. But when I try to execute it from local machine as
ssh [email protected] ...
0
votes
0
answers
725
views
make: *** No rule to make target 'install'. when trying to build git from source
I am trying to install git on ubuntu 20 on my vmware work station
I am following this tutorial article.
I installed the dependencies without any problems as well as clone a particular git as per the ...
0
votes
1
answer
1k
views
How to rsync that excludes .git/ folder but still keep the .git/config file?
In brief TLDR
To rsync a folder that has .git/ excluded but still keeping the .git/config file, how to do that?
My google search is not helpful so I asked here.
Full details
I want to take snapshot of ...
0
votes
0
answers
1k
views
"git config --list" not showing output in terminal?
Hi guys I'm running Ubuntu inside VMware and I have installed Git however after inserting both user name and email when I run "git config --list" there's no output? like nothing at all.
...
70
votes
3
answers
200k
views
"error: gnutls_handshake() failed" when connecting to https servers
When I try to connect to any HTTPS server with git, it gives the following error:
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing ...
fatal: HTTP ...
1
vote
2
answers
4k
views
No wi-fi adaptor found -Ubuntu -rtlwifi_new.git shows repository not found
I have installed Ubuntu a month ago and there in settings, it shows no wi-fi adaptor found well on youtube I found a solution, where I needed to clone this rtlwifi_new.git. But when i gave the command
...
3
votes
1
answer
806
views
How can I push to Launchpad if port 22 is blocked?
I am programming at McDonalds, and need to push some code up to Launchpad.
git push origin master
ssh: connect to host git.launchpad.net port 22: No route to host
fatal: Could not read from remote ...
0
votes
1
answer
44
views
Ubuntu delete count shows more files than initial count
I was deleting a git repo. I first cloned it and then did npm i to install the dependencies.
But, then soon after installation completed I had to delete the repo folder. I selected the folder and did ...
1
vote
1
answer
538
views
How to add all Gnome Desktop configuration (done in "Settings" front end) in a Git Repo?
How to add all Gnome Desktop configuration settings in a Git Repo? Which files I need to put under revision control?
I configured in GUI "Settings" various things
examples
Focus-follows-...
2
votes
1
answer
1k
views
problem with mpv_thumbnail_script from git
I'll try in lubuntu 20.04 to use mpv_thumbnail_script
my config for this skript
cat .config/mpv/lua-settings/mpv_thumbnail_script.conf
#Für Vorschaubildchein in mpv
cache_directory=/home/alex/mpv/...
9
votes
3
answers
64k
views
"ssh_askpass exec(/usr/libexec/openssh/ssh-askpass) no such file or directory" error when I try to push in Git repo using VS Code
Don't know what happened. But all of sudden I can't push updates in GitHub. A month ago I used SSH keys to integrate VS Code with Github so that I do not have to type email & password every single ...
9
votes
2
answers
6k
views
How to show top 10 largest items from git history
I found this command to get the top 10 largest files from my git history (in this closed issue https://github.com/18F/C2/issues/439)
git verify-pack -v .git/objects/pack/pack-...
1
vote
0
answers
71
views
Some commands can see a directory but not others?
There's a directory that had gone missing, I never intentionally deleted it (might've been accidental). Assume the directory structure is:
/parent
/dir
dirFile.js
parentFile.js
If I'm in /...
1
vote
0
answers
102
views
bash git tab completion fails when adding new files in subdirectory
In bash:
mkdir bug
cd bug
git init
mkdir foo
touch foo/test
Now, when I type git add and press <TAB> multiple times. The first tab will complete to foo/, but subsequent tabs will add ./ ...
1
vote
1
answer
2k
views
ssh agent forwarding not working after ubuntu 20.04 upgrade
SSH agent forwarding was perfectly working when I was using xubuntu 19.10, after I upgrade my system to xubuntu 20.04, its not working anymore. I never change /etc/ssh/config or /home/.ssh/config . ...
10
votes
2
answers
6k
views
"Enter password to unlock the private key" on 18.04 when no password has been set
I worked on a project without problem but since I upgraded to 18.04, when I try to use git it prompts a pop-up reading "Enter password to unlock the private key. An application wants access to the ...
3
votes
1
answer
12k
views
Package ‘git’ has no installation candidate? [duplicate]
I’m trying to install some dependencies and I get errors. For example, with git, I get “package git has no installation candidate’
With libx11-dev and several other prerequisites, I get “unable to ...
1
vote
1
answer
2k
views
Git_prompt branch no longer working after upgrade
I made a ps1 prompt a few years ago. Took a while to config it, now after upgrading it no longer works.
The .bashprompt script (which gets loaded into my .bashrc along with git-sh-prompt) it will ...