Questions tagged [git]

Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.

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

Using Libsecret to store git credentials

I am using libsecret to store my git personal access token on my laptop. Since I am working on a remote server (via ssh) regularly, I want to store my personal access token there as well. Is it safe ...
1
vote
0answers
44 views

What is the correct Homebrew Installation command for an M1 Mac mini and Big Sur?

After reinstalling the whole M1 Mac mini, Big Sur and Migration Assistant for this morning's Time Machine's backup, I'm getting a new error when installing Homebrew: /bin/bash: line 156: /usr/local/...
-1
votes
0answers
11 views

How can I remove a previously public but now private GitHub repository from showing up on Google Search? [migrated]

My GitHub repository named "mywebsite-io" (not the actual name) was a public repository for a few months and was indexed to Google Search before I converted it to private. When searching &...
1
vote
0answers
62 views

git installation failing, windows 10

Have been getting weird errors on my dev machine since the last windows update, exemplified by git failing to install : And also cryptovoxels website not working in chrome or edge (a 3D webgl site), ...
0
votes
1answer
26 views

How to debug broken Git repository

I have a Git repository that has been working fine, until all of a sudden: $ git status fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (...
0
votes
1answer
31 views

Add custom path on specific key press after git command in Git bash

I am looking to reduce the repetitive work. Following is the example, currently, I am using frequently the following command and I want to custom set the directory. I.e git add /pkg/XYZ/123/456/789/...
3
votes
1answer
678 views

git throws fatal: unable to access 'https://github.com/user/repo.git': Failed sending HTTP2 data

As of yesterday, after updating my Debian 10+bpo system, whenever I try git clone, git fetch, or any other git operation that relies on network, I get fatal: unable to access 'https://domain.example/...
0
votes
1answer
41 views

Using Hyper On Windows for cmd and Git

I just installed Oh My Zsh (Hyper) by following the instructions on How to Install Oh My Zsh! on Windows 10 Home Edition. I use it on Windows 10, but there are some issues that does not let me use it ...
1
vote
1answer
40 views

How to copy GitHub repository SSH URL in web browser using a keyboard shortcut?

GitHub repository SSH url: git@github.com:user/repo.git I am using Chrome on Windows 10 and clone a lot of repositories from GitHub and having to click "Code" button then copy the url is ...
0
votes
0answers
17 views

How can I know if the created GPG key Git Secret key has or doesn’t have a passphrase?

How can I know if the created GPG key Git Secret key has or doesn’t have a passphrase? I have tried comparing the keys, one created without entering the passphrase, and the other with the passphrase, ...
0
votes
0answers
24 views

Best way share Windows PATH variables for program installed as a user, when I sometimes want to run as an admin

I have git for windows installed on my Windows 10 machine. I installed this using my user account, and as such it is installed in a location in the app data folder, with a path like C:\Users\user.name\...
0
votes
2answers
151 views

Using Git to sync Mac and Android

I have a folder on my Mac and corresponding folder on my Android phone, which I would like to keep in sync both ways. ie. sometimes work is done on my phone, sometimes work is done on my Mac. I ...
0
votes
3answers
29 views

How to execute a command automatically based on the result generated by the previous command on command line?

Example usecase: I have a usecase where I clone Android Studio projects using git clone <urL> and upon cloning I get all folders from a repo including .idea folder. This .idea folder is located ...
1
vote
1answer
47 views

Git pull doesn't ask for passphrase

I use ssh keys for authentication with various remote git repositories. I have project A hosted in Azure and project B on GitLab. My ~/.ssh/config looks like so: $ cat ~/.ssh/config Host vs-ssh....
0
votes
0answers
20 views

Git command or zsh plugin for matching files by their stem that supports autocompletion

Staging files for commits can be quite tedious depending on the directory structure they are in. I am looking for a way to avoid having to type the full path of a file to add it to the index. Say a ...
0
votes
2answers
24 views

Restoring Local Git Repository from Remote Copy Without Affecting Working Directory

I have a local Git repository that I keep a backup copy of as follows: cd /path/to/local/repo git init git add -A git commit -m "Initial commit" git clone --bare /path/to/repo_backup/my_repo....
1
vote
0answers
21 views

How to customize shortcut keys on Git Bash Terminal (Windows 10)

How can I customize shortcut keys on Git Bash Terminal ? When I use the Option -> Keys, it only allows to turn on or off the features. What I want is to change the key combinations. Git Bash ...
0
votes
1answer
21 views

I have several images that keep reverting to an old state when creating new branches from master

I have a repository for a WordPress theme. One folder in it contains favicons and app icons. A few months ago, we updated these to new images. Now somewhere approaching half of the time that I create ...
1
vote
3answers
62 views

Git SSH public key fingerprint does not match with that on local machine

I’m trying to SSH into my github account. I added my public key to my github account and it showed the fingerprint as something like this SHA256:aYqWu+zL3hIOWTEGvneI90fehVQt9kuGVN7ov8WlTk8 When I SSH ...
1
vote
1answer
71 views

Ubuntu 20.04.2 LTS. Unable to fetch some archives

I'm trying to install this sudo apt-get install gitk git-gui But code gives this error: Err:1 http://az.archive.ubuntu.com/ubuntu focal/universe amd64 tcl amd64 8.6.9+1 403 Forbidden [IP: 94.20.20....
1
vote
0answers
56 views

How to verify if my network is under a man-in-the-middle attack?

What happened? When I tried to pull from one of my repos, I got the following error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
0answers
24 views

Installilng GiNaC and CLN on windows

I planned to move to Arch Linux but for the time being I'm unfortunately stuck with Windows. I want to install GiNaC. In its installation page it says to install CLN first so that is also something I ...
0
votes
1answer
36 views

What is the directory “…” when using git?

During a "git pull" operation, I get a report about objects in a "..." directory. What is this directory ? I'm surprised because when trying "ls -l ..." in a shell, the ...
0
votes
0answers
18 views

Unable to set a longer timeout in pgp-agent

I use git-2.31.0 with gpg-2.2.27 (I use KDE on ArchLinux), I have configured it with this ~/.gnupg/gpg-agent.conf: default-cache-ttl 43200 But it timeout after 15 minutes, what am I missing?
0
votes
1answer
71 views

What if git repository gets corrupted?

Git keeps track of every change you've made to your project. So it feels much safer to work on something knowing that, even if system crashes and current files you were working in get corrupted, there ...
0
votes
1answer
21 views

GIT, How to confirm commit zillions of files for deletion?

after issuing git commit I see vi open with something like that # Changes to be committed: # deleted: MyApp (original)/Assets.xcassets/AppIcon.appiconset/Contents.json # deleted: ...
-1
votes
1answer
24 views

Is there any particular way to set up files for Web Development? [closed]

I've been working in...studying...Web Dev for about four years and I'm wondering if there is a particular file structure that's beneficial. Example, I noticed one individual had a DEV folder directly ...
0
votes
0answers
11 views

Windows 10 Boot very slow

After installing chocolatey, meteor, git and vscode my Windows boot time got up from like 5 seconds to 25 seconds. I installed meteor by this installer https://forums.meteor.com/t/meteor-windows-...
0
votes
0answers
4 views

How to use git tag to visit an specific version of github page?

Imagine there is a website hosted with GitHub pages, each page can be found with a path like https://example.github.io/example/blob/master/index.html. Meanwhile, it's normal for an author to update ...
0
votes
0answers
27 views

Windows Search Indexing: Don't exclude folders with “.git” / git repositories [duplicate]

I index my whole data folder. After updating windows (currently on 20H2) and a new harddrive I had to select my data folder in the indexing options again. However now windows automatically excludes ...
1
vote
2answers
300 views

Dockerfile: clone repo with passwordless private key. Errors: “authentication agent” or “read_passphrase: can't open /dev/tty”

I try to clone a test project from GitLab using a Dockerfile and an SSH key pair: ssh-keygen -t rsa -P "". The private key is passwordless, the public key is published at the GitLab account. ...
0
votes
1answer
169 views

git clone: “remote: The namespace you were looking for could not be found.” … “fatal: Could not read from remote repository.”

I received the following error when trying to clone my test repo from GitLab. C:\Users\USERNAME\Documents\MYPROJECT\test>git clone git@gitlab.com:GITUSERNAME\test.git Cloning into 'test'... remote: ...
1
vote
2answers
51 views

Correctly escape a subcommand in a git alias

I would like to alias the following git command: git commit --amend -m $(git log --format=%B -n1) However if I add the following to my .gitconfig it errors with "error: unknown option `format=%B'...
0
votes
2answers
49 views

GitHub SSH test comes back successfully but wrong username

I set up a SSH keypair as per the GitHub docs. When I test the SSH connection with Git Bash command ssh -T git@github.com it works but the message is: Hi saito0211! You've successfully authenticated, ...
1
vote
0answers
13 views

etckeeper - access control

I have etckeeper installed on ten servers with Centos 6 and Centos 7. It uploads / etc from the server to an individual git repository (it has its own for each server). My git is deployed based on ...
1
vote
2answers
56 views

(git) Bash: how exactly does a line break differ from \n in a variable?

My apologies, I must have made some mistakes when performing the initial tests, as after putting everything into a single script the xxd output does indeed always match the stdouput. The entire script ...
0
votes
1answer
16 views

Listing all versioned files and untracked files in git

How can I get the list of all versioned files (committed, cached, modified...) and untracked files, so excluding only ignored files ? I tried using different options of git ls-files, but can't get it ...
0
votes
1answer
32 views

Accessing Windows “current directory” per drive using Linux path syntax

I’m on a Windows system, using the cmd shell and running the excellent Linux-style command-line tools such as grep and diff that come with Git for Windows. These tools expect file and directory ...
0
votes
0answers
61 views

ssh-add private key automatically on first usage

This must have been asked before but I just couldn't find a working solution despite lots of searching. So I'd like a password prompt to pop up which asks for my ssh key passphrase when I try to git ...
0
votes
1answer
39 views

Why does Visual Studio Code (VSC) display nothing when I open a folder containing files (html, css, js) (occurs intermittently)?

At times I open a folder in Visual Studio Code and it displays a blank UI (no tab navigation on the left and no document view on the right. There are some menus though. If I open the outer folder ...
0
votes
1answer
43 views

Prevent merging certain local changes to files in version control in git

I'm wondering what is a good way of preventing certain local changes to be merged to a branch in git. Concretely, I often find myself wanting to make local changes to source controlled files and have ...
0
votes
0answers
14 views

Access CodeBase from GitHub

Not sure if this is the right site - please let me know if not. I am trying to utilize open-source code from github -- https://github.com/LibVNC/libvncserver. Requirements: GCC CMake My Attempts: I ...
0
votes
0answers
18 views

Git bash is not serving page properly

I am in a coding boot camp. We are serving through the Git Bash terminal. We will create directories through the git. We then “code .” enter to bring up VSCode. However, we are told to “serve” through ...
0
votes
1answer
52 views

How do I configure git to use multiple SSH keys for different accounts?

I have two GitHub accounts, one for work and one for personal use. Due to IT requirements at work, I've been using SSH for several years, but for my personal project I've been using basic ...
0
votes
0answers
14 views

How to add more information to the details page of a file in Windows explorer

In my previous company, we were working with GIT, which uses hashing technology for identifying purposes. I remember that the commit hash of a file was present in the details of a file (open a file in ...
0
votes
2answers
74 views

Why does chmod not work on bash emulation on windows?

I have just installed Git 2.30.1 for windows and generated ssh keys with ssh-keygen -t ed25519 -C "me@email.com". My private key has the permission 644 and I can't change it with chmod. When ...
1
vote
1answer
52 views

Git Rebase Won't Let Me Type

I'm trying to do a git rebase on the Windows CMD to change a commit message (I've also tried the git bash but the exact same problem occurs there). When I do the rebase via git rebase -i HEAD~2 I've ...
0
votes
1answer
77 views

Can git automatically rename files during clone/pull/commit?

We have a collection of scripts, which have, historically, had a different name-prefix depending on whether they are used in production or a lower environment. We're switching to git now, and would ...
0
votes
0answers
15 views

Split a large text file, remove all email addresses, and everything less than 8 characters and greater than 12

I have an extremely large text file (14 GB) in size and I would like to firstly remove all the email addresses, all the IP addresses and everything that has less than 8 characters and and then ...
0
votes
0answers
22 views

Git command line: utility to copy long paths

I'm using git command line client to do all my work. It works fine but I'm tired with copying long file paths e.g. with git add long_path or git checkout long_branch_name commands. Is there any helper ...

1
2 3 4 5
49