All Questions
65 questions
0
votes
1
answer
22
views
How do I change the Subject/Title of patchwork patch?
I have created a patch for the Linux kernel. It can be found at the following website: https://patchwork.kernel.org/project/bluetooth/patch/[email protected]/
Unfortunately, I ...
1
vote
2
answers
66
views
How to modify this git alias so it can be run without the need to put multiword commands in quotation?
I have this alias:
git config --global alias.all '!f() { ls -R -d */.git | xargs -I{} bash -c "echo {} && git -C {}/../ $1"; }; f'
It currently works fine when I run it like :
git ...
0
votes
1
answer
35
views
Track my slight changes to an external git repository I cannot push
I would like to use the code stored in an external git repository (I mean I am not a contributor for this code, I cannot push or create branches) but of course I need to change some files before ...
3
votes
1
answer
727
views
Locally built Git install can't connect to remote repos - missing remote-https
I'm trying to get Git working on an ancient Gentoo Linux box which I don't have root/elevated rights for. I figured I should be able to build and install Git locally in my ~/bin folder, whilst I can ...
0
votes
1
answer
3k
views
How can I make git treat symlinks as a file?
I have a very specific use case. The DesignSync versioning system we use replaces files with their symlink to the remote repository when we check-in a file.
Since I use git locally to version my ...
0
votes
0
answers
305
views
Can I specify files from other directories to be added in a git repository?
I have a git repository called "workspace" which I add my code so I can access it from different machines. I wanted to add my code editor config files without copy pasting them every time or ...
1
vote
2
answers
7k
views
How to disable Host Key Checking check on git over ssh?
When I want to execute git clone [email protected]:Company/Repo I see this message for the first time after installing a new linux instance:
Cloning into 'Repo'...
The authenticity of host 'github.com (...
1
vote
1
answer
543
views
How can I change terminal branch color?
My terminal has output like the one below.
pc@pop-os:~/my-project (main)$
This project was downloaded via GitHub. (main) is colored green. I set it as a branch name that appears on my terminal when I ...
0
votes
1
answer
4k
views
how to print out only commit author and commit date by using git log?
I want to list all commit by using git log, in which each line contain [commit author]: commit date
For example:
[name]: 7 February 2021
0
votes
0
answers
164
views
How to setup local server on Linux for testing Dokku?
I'm new to Dokku and nginx server and I'm trying to set up server locally on Linux Ubuntu 20.04 for testing purpose instead of using one such as Hetzner (Cloud) or DigitalOcean (which already contains ...
0
votes
1
answer
464
views
How can I make the git-prompt.sh's output (branch etc.) bold?
I use git-prompt.sh to customize bash's prompt with Git information, e.g. branch.
https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
I want git-prompt.sh's output to be bold, ...
0
votes
1
answer
232
views
pom.xml, **/pom.xml, **/**/pom.xml, then **/**/**/pom.xml... What shortcut to target a file we know its name, whatever its depth in directories?
To apply some changes to all my pom.xml files, I'm running these commands:
git checkout --theirs **/**/**/**/pom.xml
git checkout --theirs **/**/**/pom.xml
git checkout --theirs **/**/pom.xml
git ...
2
votes
0
answers
928
views
Unable to generate ecdsa-sk key
Suddenly ssh stopeed working on my Ubuntu 20.04 installation. My openssh installation is: OpenSSH_8.8p1, OpenSSL 1.1.1m 14 Dec 2021
When I execute the ssh command to connect to a remote machine it ...
1
vote
0
answers
285
views
How to perform git pull from gitlab repo with 2FA access token using linux terminal?
I had already cloned a few repos from gitlab and then LATER we added two factor authentication on the gitlab repos.
Now I am trying to update my local branch by doing git pull like this:
sudo git pull
...
0
votes
2
answers
8k
views
How to pipe a file as input to tar command
I get the following error when trying to uncompress piped tar file with the following command :
$ git archive --format=tar 0af62b1 | tar -xf -C /the/path/here/
tar: -C: Cannot open: No such file or ...