Questions tagged [git]

Git is a distributed revision control system with an emphasis on speed.

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

when trying to sudo apt install git, i get the following error

The following packages have unmet dependencies: git : Depends: liberror-perl but it is not installable E: Unable to correct problems, you have held broken packages.
0 votes
0 answers
19 views

Git clone - personal access tokens

I have generated my personal token and it is a classic token. When I paste it into the terminal to clone my repository, the terminal is asking for a password. How do I access the password?
0 votes
0 answers
37 views

Where do I find the password to GitHub address to use the "git" command in GNOME Terminal?

When I run the command git push in GNOME Terminal, I get a message saying that a password is required, similar to the following: Password for 'https://{PERSONAL_TOKEN}@github.com': Where do I find ...
-1 votes
0 answers
18 views

Symlinked folder commited with Git remains as modified

I run a VirtualBox Ubuntu guest on a Windows 10 host. There is a NTFS shared folder between the 2 OS. My symlinked folders are accessible in both OS, i.e. both OS sees it as a symlink After I commit a ...
  • 167
1 vote
2 answers
70 views

Couldn't able to store a output of awk command

I have been trying to print git clone progress on more minimalistic way for my project. Aim Instead of printing a whole git clone output on screen remote: Enumerating objects: 1845678, done. ...
0 votes
0 answers
15 views

Where is the current development repository of the Ubuntu Mainline kernel?

For (I believe) a long time, the development repository of the Ubuntu Mainline kernel has been git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack. However, this ...
  • 2,205
0 votes
1 answer
49 views

git send-email setup failure

I am unable to setup git send-mail to send a patch. os platform: Ubuntu22.04 LTS linux kernel: 5.15.0-58-generic git virsion: 2.34.1 I following these two guides. git setup guide microsoft smtp ...
0 votes
0 answers
23 views

Setup Git Credentials Manager to login to microsoft SSO

Company has a Gitlab server and uses microsoft login to authenticate. Trying to clone a repository with HTTPS. It just shows the Git Credential Manager window. I try to login with the company e-mail ...
10 votes
3 answers
1k views

Why is `$(git branch)` outputting all files' names inside folder (besides git branches)?

I wrote a command to delete all git branches without needing to write them all mannually, which is currently like this: git branch -d $(git branch) It does what I want, but also tries to delete ...
0 votes
0 answers
56 views

Sasquatch (binwalk) throws error when running build.sh

I cloned the repository and installed the c compiler As said here: https://github.com/ReFirmLabs/binwalk/blob/master/INSTALL.md But when trying to build sasquatch, after I installed and cloned it, ...
  • 1
0 votes
1 answer
70 views

wget using git credentials

How do I run wget or curl to download a single file from a Git repository which is already authenticated in Git? It seems that I need to pass a private key or a public key, but I am already ...
  • 113
0 votes
1 answer
178 views

installing openstack using devstack on ubuntu 22.04

when I run the ./stack.sh command to install openstack I get the following errors: please help me error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet. fatal: ...
0 votes
0 answers
20 views

Git decides for me, instead of generating a merge-conflict

i posted this : https://pastebin.com/62B1aTEm, but was a little dirty because of opening gedit.... now this is cleaner : https://pastebin.com/1q9D2aZi Here is the video: https://drive.google.com/file/...
0 votes
0 answers
13 views

I can't find my git related directory one day

I'm using Ubuntu 18.04. I had a git related directory under my personal directory. My last operation in this git directory is "git push". This morinig I suddenly found the directory is ...
0 votes
0 answers
15 views

Is my keyboard misconfigured or am I doing something wrong?

I'm using git for the first time with my terminal, when i use git commit i get these commands, but they don't do what they say, for example: the letter O is for save, I press Esc and then O but it ...
2 votes
0 answers
19 views

How would one craft a dsc that builds a package from multiple upstream source repositories

This is a complex one releated specifically to Debian/Ubuntu packaging (i.e. making .debs). I've got a set of projects that are all currently separate. Using my real project (Jellyfin) here for ...
0 votes
0 answers
138 views

no such file or directory when setting up alias

I am following a guide to setup dotfiles - https://www.paultman.com/git-for-dotfile-configs/ There is a command to set an alias for git and target it using a git dir. However when running this command ...
  • 403
3 votes
1 answer
769 views

How to downgrade Git from version 2.38.1 to 2.37.3 on Ubuntu 20.04

How to downgrade Git from version 2.38.1 to 2.37.3 on Ubuntu 20.04? This is needed because Atlassian Bitbucket Server 8.+ do not support latest version of Git. Please se at: https://confluence....
0 votes
0 answers
23 views

error occur while install git cmd [duplicate]

Reading package lists... Done Building dependency tree... Done Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet ...
1 vote
0 answers
289 views

SSH and Telnet timing out. Ubuntu 22.04 lts

This is my first post on stackexchange and I am a Linux newbie, so if I misconduct anyhow, let me know. Every time I try to ssh (or telnet) into anything that isn't localhost I cannot connect due to ...
1 vote
0 answers
85 views

git difftool with meld broken after update to 22.04: fatal: external diff died

After updating to 22.04 recently, this command has stopped working: git difftool --tool=meld -y HEAD~1 Viewing (1/15): 'file.txt' Launch 'meld' [Y/n]? y Trace/breakpoint trap (core dumped) fatal: ...
  • 161
0 votes
0 answers
24 views

unable install occlum in ubuntu20.04

intel@intel-M50CYP2SBSTD:~/akarsh/occlum$ make submodule Add Git hooks that check Rust code format issues before commits and pushes git submodule init git submodule update --progress cd deps/serde-...
1 vote
1 answer
293 views

Running Ubuntu 22.04 (Jammy) and failing to install GIT

Attempting to install GIT using apt-get and it's failing. All of the web searches turn up different commands none seem to work. Output of the install command sudo apt-get install apt-transport-https ...
  • 11
0 votes
0 answers
46 views

Unable to install kpt package on ubuntu : ambiguous repo/dir@version specify '.git' in argument

In order to install kpt package inside, I am referring to this link I am running the below command in the docker and it is working fine RUN mkdir -p ~/bin RUN curl -L https://github.com/...
  • 101
2 votes
3 answers
5k views

Git "fatal: detected dubious ownership in repository"

Description: Ubuntu 22.04.1 LTS Release: 22.04 I'm trying to cron some git commands under the user www-data and it doesn't work. To troubleshoot, I tried to run sudo -u www-data git show ...
  • 167
0 votes
0 answers
73 views

Is there a way to include Behind / Ahead info in oh-my-zsh Prompt?

I know using the below command, we can get the results of commits that is Behind and Ahead. git rev-list --left-right --count origin/master...`git branch --show-current` But I would like to know, if ...
  • 79.2k
0 votes
1 answer
603 views

git clone not working

So I'm new to linux and all. I've been trying to configure my nvim recently. Then suddenly the plugins didnt get installed (failed at cloning) and thought it might be plugin manager (packer) problem, ...
  • 1
0 votes
0 answers
24 views

Jenkins builds instantly aborts whenever I try to build it. Ubuntu 22.04

I am having an issue with my jenkins server where some projects just don't build at all. When I click build now nothing happens, I tried refreshing and still nothing about a new build. It was working ...
0 votes
0 answers
643 views

SSH/GIT commands stuck after upgrading to Ubuntu 22.04

After upgrading to Ubuntu 22.04 from Ubuntu 20.04 I have some problems with git commands. For example a simple git clone or git pull from github just hang/freeze forever without any error. After some ...
1 vote
2 answers
8k views

stderr: No ECDSA host key is known for github.com and you have requested strict checking

[enter image description here] 1Failed to connect to repository : Command "git ls-remote -h -- git@github.com:yeni/jenkins-terraform.git HEAD" returned status code 128: stdout: stderr: No ...
0 votes
0 answers
91 views

Chown for all users via sudors does not work for specific folder

I would like to allow chown for a special folder recursively for all users, so that I can use a git hook to automatically update the folder after a push. For this I have customized sudoers using sudo ...
1 vote
1 answer
629 views

Display Git branch in brackets inside Ubuntu terminal using custom .profile script

I have this custom .profile script: PS1='\[\033]0;WSL2 Bash\W\007\]' # set window title PS1="$PS1"'\n' # new line PS1="$PS1"'\[\033[36m\]' # change to green ...
  • 113
0 votes
0 answers
212 views

How do I open Git bash in ubuntu 18.04

I have installed Git bash in ubuntu 18.04 using sudo apt install git-all. Now I want to enter some SSH key command to connect it to my github account, But I can't access to my gitbash. How can I open ...
0 votes
0 answers
655 views

How to install git-filter-repo?

I want to install git-filter-repo which is in https://launchpad.net/ubuntu/jammy/+package/git-filter-repo When I want to install it I get $ sudo apt install git-filter-repo Reading package lists... ...
  • 111
0 votes
2 answers
699 views

If I upgrade my 16.04 to 22.04 Mate, does it affect my git files?

a fairly basic question. I know that in general when you update Ubuntu distros, your files are saved. My question is specifically about git files. Do they have to be reinitialized or what is the ...
0 votes
1 answer
359 views

How to update a package from github when it was installed using apt-get and latest version not available in the deb repository?

I want to update a package that was installed from the debian repository but the latest version is only available in a git repo. How can I go about updating the package?
0 votes
1 answer
79 views

How to build when there's no makefile or installation script using meson (?)

I am trying to install Dconf Editor. I created a directory, switched to it and then ran git clone https://gitlab.gnome.org/GNOME/dconf-editor.git I looked for an installation script, there isn't one ...
  • 59
0 votes
0 answers
238 views

How to git clone into a folder?

I have set up ssh keys correctly for the ubuntu user, as I can git clone if I use sudo to chmod 777 a directory. Obviously 777 is not a good idea, it was just to see where the issue lies. So, in my /...
  • 276
0 votes
0 answers
232 views

Which permissions does a folder need to Git Clone into it?

I'm trying to git clone a project onto my Ubuntu server. Yet I get a permission denied error. If I create a new folder with 777 permissions it works. What permission level should a folder have to use ...
  • 276
0 votes
1 answer
52 views

Git pull and vpn asking for old root password

I changed the system password recently. Whenever I am trying to do a git pull or a vpn connection, I am asked for the "previous" Ubuntu password. May I know why this is happening?
  • 174
1 vote
1 answer
54 views

How to update my git on kubuntu?

In my kubuntu 20 I have : git version 2.25.1 From my team-maneger I got notice that I need to update my git to version 2.29 or upper How can I do it correctly ? Thanks!
  • 117
1 vote
2 answers
861 views

Bash - How to add new line when appending text to a file?

I'm running this command to append output text data to a markdown file: git log -1 --oneline --skip=1 | tee -a page1.md For the most part functionality is great, but I need to format the output so ...
  • 121
1 vote
0 answers
110 views

Backup, Version Control, or Something Else?

So currently I have a number of files including video, images, audio and source code on a local machine. My current procedure is to zip up the folders I know have been altered and copy the resulting ...
1 vote
1 answer
163 views

I accidentally authenticated wrong SSH key in my ubuntu terminal. How can I fix this?

I am new to Git. I created a new SSH key in my terminal, added it in Github and then I tried testing SSH connection in my terminal using these commands: https://docs.github.com/en/authentication/...
1 vote
1 answer
46 views

Updating repo from github

i have a local copy (clone) of a github repo on my machine, when yopu first run my bash script it creates some folders that are your settings. The thing is that i need a command that checks if this ...
  • 117
0 votes
1 answer
324 views

cp: cannot stat '~./project_name/*': No such file or directory

Project is on the branch main. Deployment on branch gh-pages from path: ~./project_name/output at push to main. System: ubuntu 20.04 to wsl2. Which paths(parameters) should be specified for the cp -r ...
1 vote
0 answers
126 views

Command lnd not found even after installing lnd

I tried installing lnd using the commands shown in the installation guide. I used these commands: git clone https://github.com/lightningnetwork/lnd cd lnd make install but when I try running the lnd ...
0 votes
0 answers
570 views

vscode GitLens - open changes ( difftool ) fails to open - can't find the temp file created by git in tmp folder

After upgrading ubuntu from 18.04 to 20.04, Vscode GitLense extension can't open the diff tool or diff tool opened but report that the temp file created by git is not found. If I run the diff tool ...
0 votes
0 answers
669 views

Permission denied when trying to do any operation on folder

I am getting permission denied every time I try to delete a file, do a git stash or just try to do any operation in vs code so my question is, is there any way to get what is holding up a file/...
0 votes
1 answer
3k views

vscode git not working "folder currently does not have a git repository"

vscode: I cannot see anything in my git panel for vscode. vscode integration for git does not work. When I open up my old git directory on my data drive, it says: the folder has no git and cannot ...

1
2 3 4 5
16