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.
861
questions with no upvoted or accepted answers
1
vote
0
answers
205
views
How to create a service for git bash and adding all the c drive files and then commit
I have written the power shell script which creates the service for git bash. After opening git bash the script has to add all the c drive files and commit. but for every one hour what ever the ...
1
vote
0
answers
134
views
Windows git remote treats quotes inserted in the remote path by the git client literally: how to disable them?
I am trying to add a remote with git 2.23.0 on a Windows 10 PC to a git repo on a remote machine running Windows Server 2012 with git 2.34.1.
I set up OpenSSH on the remote using Win32-OpenSSH, so SSH ...
1
vote
0
answers
2k
views
Batch script git commit with dynamic comment
I am using a .bat file to commit a project to git and github. I would like it to take one optional argument that is the username of the person calling the file. That will be passed in using the ...
1
vote
0
answers
345
views
Using `git gui` with `git submodules foreach`
I have a git repository with a number of submodules that are very similar. This means that any change which is done to one of them is typically done in similar way to the other submodules.
Therefore a ...
1
vote
0
answers
1k
views
How to delete git author entries from intelliJ
I just got a new work laptop and I'm still having trouble with the setup.
When I tried to commit some changes to a distant repository, instead of writing down my name and email in the git credential ...
1
vote
1
answer
915
views
Is there a way to annotate that a PR depends on another PR
If I create a Pull Request from a branch
git checkout -b branch-for-first-PR
# edits and commits
git push origin branch-for-first-PR
do some work in it, and then want to experiment with building on ...
1
vote
1
answer
503
views
How to hide unverified signature in `git log`?
When using git command line, is there any way to hide only the unverified notices of commit signature in git log --show-signature?
Having unverified signature along the commit list is rather ...
1
vote
0
answers
188
views
What is the meaning of the plus (+) sign in the User section of my Git bash shell prompt?
I recently installed Bash for Windows to use Git on my office laptop with Windows 10, an OS I'm not so familiar with. When I open this bash terminal I expect the prompt would show you your username ...
1
vote
0
answers
486
views
Owner of root directory and unable to delete due to permissions
Windows Server 2016 Standard
I am trying to delete lots of (tens of thousands of) files from a server shared drive.
Using the standard Windows method of selecting folders and deleting seemed to remove ...
1
vote
1
answer
5k
views
How do I get the correct last modified dates in github
Is there a way to get the correct last modified times for files in my git repository in windows 10 (time displayed in git repository rather than displaying last modified right now)?
Also, can I do ...
1
vote
0
answers
1k
views
How to install Git on an offline Windows computer?
I have a Windows computer not connected to the internet.
I tried to fun the exe to install git (located at https://git-scm.com/download/win?force_isolation=true)
It didn't work & had some error ...
1
vote
0
answers
291
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), ...
1
vote
0
answers
403
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! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@...
1
vote
0
answers
33
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
1
answer
803
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 ...
1
vote
0
answers
66
views
Is there a way to do version controlled operating system back-ups?
I recently messed up pretty badly by removing all 32-bit binaries in my Ubuntu 18.04, of course I'd forgotten to make a back-up. I've had similar issues in the past on Windows as well where I did ...
1
vote
0
answers
284
views
I'm having trouble merging changes in Visual Studio; it keeps erasing my files
I'm trying to merge two git branches in Visual Studio. I have some files that say "added in both", and when I open them I get WinMerge popping up because that's what I have configured for ...
1
vote
0
answers
68
views
How to get output from the console and act on it without expect?
I have read in another question’s answer that if you want to use expect like this:
git clone ssh://[email protected]/myproject.git
expect "Enter passphrase for key..."
send "myPassword\r&...
1
vote
0
answers
40
views
Syncing macports between machines
On Mac OS. I use three different machines (work, laptop and home). I currently use git to store my dot files and to keep them synced. I have previously used homebrew to install software with a saved ...
1
vote
0
answers
57
views
VSCode: see the whole git commit diff
There are plenty of questions about how to get the file diff related to a commit, but I can't find anywhere a way to see the whole commit diff, just like Atom does:
I'm really struggling finding a ...
1
vote
1
answer
5k
views
git clone failed with info kex_exchange_identification: read: Operation timed out
problem description:
I was using a company network and tried to get my own repo for some notes in my repo in github.com it failed. I tried to get more verbose log with the following commands and i got ...
1
vote
1
answer
894
views
Getting current working dir in git hook
I'm trying to write a commit-msg hook that has to derive some information based on where (dir) the user is committing from. Let's say that the user is currently operating from the following path: /...
1
vote
0
answers
8k
views
Getting "fatal: this operation must be run in a work tree" after initializing a remote Git repo
I am super familiar with using Git on GitHub, but I am not at all familiar with git pushing to a custom machine instance.
I just figured out how to initialize a remote repo like this, last step being ...
1
vote
1
answer
658
views
Getting "fatal: 'path' does not appear to be a git repository" when pushing to Google Cloud instance
I am in a Git repository:
$ cd /Users/me/dev/example
$ git status
On branch master
nothing to commit, working tree clean
$ pwd
/Users/me/dev/example
I ran these:
gcloud compute config-ssh
ssh example....
1
vote
2
answers
431
views
Visual Studio files copied to GitHub but listed in .gitignore
I cannot figure out what I am missing in trying to prevent the Visual Studio 2019 Team Explorer from copying files to GitHub when the .gitignore file lists them.
My .gitignore file is in the same ...
1
vote
0
answers
78
views
Multiple SSH keys on CentOS
Scenario: I have a project using Bitbucket as a remote repo for Git. Local environment is a MacBook Pro, remote (production) environment is CentOS.
Generated a keypair on the MacBook Pro, placed the ...
1
vote
1
answer
347
views
Github permission denied while cloning a repository
I am learning github and I started today .At first everything went fine and I was able to clone a repository then commit and push changes but now the second repository is not working I am not able to ...
1
vote
0
answers
769
views
Exception when cloning Azure.Devops Repository
I can clone repositories from my work's repo fine. I switched DevOps and VisualStudio to my personal Microsoft account to do some DevOps tutorials. Whenever I attempt to clone I get the following ...
1
vote
1
answer
368
views
Deploying git clone into Windows 10 inetpub wwwroot
I have a brand new Windows 10 Professional installed, configuring for the first time. I have a local web presence that I like to deploy, typically from Git repository straight into whatever the ...
1
vote
2
answers
1k
views
Shift-arrow keys send ABCD in Git Bash on Windows 10
My git bash isn't working. It's probably some setting I tampered with and I don't remember what it is. I don't know why Shift-left and Shift-right arrow don't select text but send D and C characters. ...
1
vote
1
answer
347
views
git commands hang and finish after >1 minute in gitlab
Yesterday git commands (e.g. git pull) started to be super slow, when doing them against gitlab.com. They are working as usual when using them against github.com, so I assumed this is a problem with ...
1
vote
0
answers
2k
views
How to correct a merge in wrong branch?
I merged the Branch add-button in master instead to merge it in dev branch !
My question is, how to undo this merge and make master branch like before, then merge add-button to dev branch ?
1
vote
0
answers
105
views
Run issue with Lexikos AHKControl script?
I've been looking for this script, AHKControl by lexikos all over the place. The original release thread is on the old defunct forum, that may be why I cant see any download links there.
I found a ...
1
vote
0
answers
490
views
Hyper-V: using git clone with SSH under Ubuntu 18 Guest and MS-Win 10 Host
Cloning a repository via SSH is not working.
When I try to clone my repository using SSH from Ubuntu guest I got the following error message.
john@machine:~$ git clone [email protected]:john/dotfiles....
1
vote
0
answers
2k
views
Windows 10 - GIT issues with cloning/pulling/pushing
I've got an strange issue. Since I updated my GIT on my Windows 10 machine, I get the error below.
I use GIT for Windows with Bash.
If I run GIT Bash with administrator rights then everything works ...
1
vote
0
answers
1k
views
Use hardlink to have one file in multiple locations (different drives)
I'd like to have one file at different drives on Windows. I tried using hard link
mklink /H I:\file.bib C:\file.bib
But I get the following message.
The system cannot move the file to a different ...
1
vote
1
answer
2k
views
vsDiffMerge not running as Sourcetree external merge tool
I'm trying to set up vsDiffMerge (from Visual Studio Professional 2017) as my external merge/diff tool for SourceTree. However, when I try to resolve merge conflicts with the external tool, nothing ...
1
vote
1
answer
269
views
Git credential helper over OpenSSH from Windows server
I have a Windows 10 machine with an OpenSSH server.
My goal is to remotely connect to it and clone some repositories that need authentication over HTTPS.
I keep getting this error:
Checking out ...
1
vote
0
answers
1k
views
URGENT - used git clean -xdf, lost everything need something to recover the files
I was doing some coding and working on an environment when I read a command that would help me sort my libraries in a conda environment -> git clean -xdf . Dumb me just pasted on the terminal, lost ...
1
vote
0
answers
436
views
Which is better for code update among multiple systems - rsync or git?
As the title suggests, which is a better option to update code - between rsync and git, when one is working on several systems, some of them are remote, local and one is the central repository for the ...
1
vote
1
answer
1k
views
How to replace my sub directory of git to root directory of git
This image is my git project:
I have two projects, Android and IOS in my git repo.
However I don't need IOS project any longer.
So I want my android project to be root directory of git with previous ...
1
vote
1
answer
178
views
Bitbucket with ssh : git push OK but git clone KO. HTTPS works fine
My company has a bitbucket server hosting git repos.
On my machine, https works fine and I can clone/pull/push repos whenever I have R/W access.
I added ssh credentials to bitbucket to use ssh (...
1
vote
0
answers
208
views
Git hangs on commit from atom
This appears to be specifically related to Atom with Git.
I can successfully change my .gitconfig using either direct editing or by entering the git command:
$ git config --global core.editor "<...
1
vote
1
answer
2k
views
Ssh authentication works, but git clone doesn't
I am on Windows 10 and I'm really confused why I can't clone a repo from bitbucket. I generated a keypair and added the public key to my bitbucket account, added the private key to the ssh-agent. ssh-...
1
vote
1
answer
834
views
Git revision control on a binary file (that seems only to have text)
A program I use (TopSolid) saves it's settings in the top.cfg file. When I open the file with a text editor (notepad++ and notepad) I can see only text.
Sample:
A_COATING_NAME ""
A_FINISHING_NAME ...
1
vote
1
answer
1k
views
Permission denied (publickey). Could not read from remote repository
I am using android studio 3.6 and i can't find the SSH executable option when i navigate to file >> settings >> Version Control >> Git.
I am getting this error when i try to push a project to github:
...
1
vote
0
answers
322
views
Cannot run rails new myapp -d postgresql
I was following the tutorial here: https://gorails.com/setup/windows/10
I reached the part where I run to create my app and it starts then I run into this error:
create
create README.md
...
1
vote
1
answer
3k
views
Git commit could not open '.git/COMMIT_EDITMSG': Permission denied
I'm experiencing 'permission denied' in my own repo in a shared server.
I tried some found solutions from other stacks and it did not solve my issue.
Is there anything else I should be trying?
-bash-4....
1
vote
1
answer
1k
views
How can I set Tmux pane title, like "zsh-prompt : powerlevel9k"?
When I open many panes in Tmux, and do something like ls or git status, the screen has a lot of prompt like:
I want to have this complex prompt on the top of pane, and only # on current line.
Like:
...
1
vote
0
answers
391
views
Visual Studio shortcut to undo or roll back uncommitted changes to selected line
In Visual Studio is aware of uncommitted changes as evidenced through both team explorer and the optional margin highlighting of lines.
Is there a way or shortcut to revert or undo the uncommitted ...