Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [git-bash]

The tag has no usage guidance.

0
votes
0answers
21 views

What does java is hashed mean?

I am running Windows 10. I use git bash. When I run type java I get the reply: "java is hashed (/c/Program Files (x86)/Common Files/Oracle/Java/javapath/java)" What does this tell me about my java ...
0
votes
1answer
18 views

Differences between git add and git stage?

I know that "git add [file(s)]", lets git to track (version control) specified list of file(s). But it seems we could use the same command instead of "git stage [file(s)]" which add file(s) to the ...
-1
votes
0answers
48 views

Notepad++ opens up via git bash, but receiving error

git Bash recognises Notepad++ command and opens Notepad++. But i receive the following error.(kkris is my username) error: C:\Users\kkris\AppData\Roaming\Notepad++\plugins\Config\Hunspell\en_US.us ...
0
votes
1answer
10 views

Git Bash error-reset

I've just started using Git Bash for executing my code, I tried to set it up for using python and anaconda, and when setting it up I misspelled a command line, and an error occurs every time I start ...
0
votes
0answers
10 views

Git: How to change the base of multiple branches

My git repository looks like the following: I have a large codebase A1 and a few branches that contain small changes to this codebase, let's call those branches B1, C1 and D1. Today I found out that ...
0
votes
0answers
26 views

Automatically load SSH key on Windows startup

The software context here is Windows 10 + Git for Windows, which comes with a lot of extra tools, some of which I mention below. I have several private repositories on BitBucket. In order to to avoid ...
1
vote
0answers
11 views

How to start auto Kibana after system boot (Linux)

So we are hosting our development environment on our internal LAN network. However, we keep facing an issue of restarting kibana every few minutes. Also if there is a way that I can schedule it to ...
0
votes
1answer
24 views

Is there anyway that ConEmu can display local bash and remote ssh on the same tab?

OS: Win 10 ConEmu: 180626 [64] I would like to display a ssh to my remote server and a local bash on the same. I can easily split with CTRL+SHIFT+ (e or o) but if I'm on remote it opens another ...
1
vote
3answers
94 views

Does the .git folder actually contain your files?

In theory, if you backed up just the .git folder in a flash drive and some rouge user deleted all your project files in your PC, can you still restore your files from that .git folder in your flash ...
0
votes
0answers
54 views

When depressing ALT + F8 in Git Bash, Git Bash returns 3~

As suggested by the Stack Overflow community, I am asking this question here. I am running Git Bash version 2.19.1.windows.1. I am using a Lenovo Think Pad 440 computer with 8 GB of memory running ...
-2
votes
1answer
25 views

Can you use Git Bash to remove folders/files from your computer?

I'm new with Git Bash, but I've had some experience with it before. However, my sister has a folder/file on her USB that I can't seem to get rid of by right clicking and saying "delete" or by using "...
0
votes
1answer
50 views

Can't show manual pages for `ls` in Vagrant

That's my first question in here and I'm still a beginner so please bear with me. I'm having a Linux Command Line Basics course on Udacity. I got to the point where I'm asked to open a manual page for ...
0
votes
1answer
187 views

Getting a “Command cex was not found” error trying to execute “drush cex”

I've installed Drush for my Drupal website on Windows 10 and I'm trying to export the config settings using drush cex in Git Bash. However, when doing this I get the following error: Command cex ...
1
vote
1answer
277 views

Problems executing perl on git for windows bash

The issue is that perl is installed in my system and bash can see it, however when I try to execute a perl script that includes a module, there's an error. Can't locate Text/CSV.pm in @INC (you ...
0
votes
1answer
66 views

How to permanently delete a git repo which is cloned from git-bash?

I am using Windows 10(64-bit). So I cloned a repository through git-bash in my home directory just for testing but when I have been done with that repo. I decided to delete that directory and ...
0
votes
0answers
85 views

Avoid adding unnecessay Windows %PATH% to Git Bash

Unlike Windows & Git Bash: Bash PATH to read Windows %PATH% system variable, I am trying to avoid Git Bash from adding many entries from windows %PATH%. The reason is my Windows %PATH% has many ...
0
votes
1answer
30 views

Git - 2 repositories

What I want to achieve? I have 2 repositories (GitHub): first, second. Both share an identical folder /root with 1 .git subfolder. /root has /root/a and /root/b subfolders. So folder tree looks ...
0
votes
0answers
179 views

Tab completion for .bat files in Git-for-Windows Bash

Git for Windows installs "Git Bash," a bash shell that works in Windows, which is very nice. It's based on MinTTY, I believe. As well as bash shell scripts, it can also execute Windows batch (.bat) ...
0
votes
1answer
122 views

Make return that directory is not recognized as an internal or external command on windows

I have project that use make that usually run on GNU/Linux and now I've try to run it on windows and got error (from git bash): '.' is not recognized as an internal or external command, I've removed ...
0
votes
3answers
831 views

Opening a GUI program in full screen from command line invocation

Specifically, I want to have the git-bash command prompt opened in full-screen mode upon startup of Windows 10. To this end, I have added as shortcut of the program to Windows' startup folder; it ...
0
votes
1answer
516 views

Setting to use git-bash as default shell when connecting remotely via OpenSSH to Windows Server 2016

The Powershell OpenSSH website has good instructions on how to install and use OpenSSH. These include how to "Configuring the default ssh shell (optional)" If I elect to use git-bash instead of ...
0
votes
1answer
439 views

Open Visual Studio from within Git bash

I want to open Visual Studio Editor from within the git bash. Don't know why but providing the path doesn't help.
0
votes
1answer
884 views

How to stop git-bash shell from waiting for process to finish?

Based on a solution to How do I open a new git bash terminal window at my current location in windows? I can use $ git-bash to launch a new terminal from inside a git-bash console window. However, ...
0
votes
1answer
290 views

Run command in bash_profile only when in MINGW64

I am using git bash, and in my .bash_profile I have cd Which works when I start MINGW64, but when I open vscode, the console also runs that command. Is there any way for me to only run the cd ...
1
vote
1answer
648 views

git-bash how to handle spaces in filenames

I have written the following script to run under git-bash under Windows 7: #!/usr/bin/env sh for logfile in `find -name "*.log" -o -name "*.err" -o -name "*.out"` do echo $logfile grep "api/" ...
1
vote
0answers
213 views

How could I access my windows PC's Git Bash from Linux Terminal

I am trying to achieve something a bit odd. I currently have a dual monitor setup , with my laptop beside, linked with synergy. I want to connect to my windows PC from my Linux mint laptop and Control ...
0
votes
0answers
70 views

git bash: “Failed to read password: The handle is invalid” (doesn't let me type the password for rclone)

When I write rclone listremotes and press enter, it should ask my password. I should write it (even if it won't appear) then I should press enter to valid it. But as you can see in the picture, When ...
0
votes
1answer
4k views

How to sync windows 10 clock to internet from commandline?

I would like to be able to synchronize my windows 10 computer clock when it goes out of sync... From the commandline with 1 command. This solution shows how to do it via settings. https://superuser....
0
votes
1answer
237 views

Installing Git SDK 64 bit - no trusted keys?

I am trying to install the Git SDK 64 bit on my Windows 10 system. I have installed it before just fine, but evidently something must have changed, so it's not working this time around. The installer'...
1
vote
3answers
4k views

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some ...
0
votes
0answers
427 views

How can I fix tab completion in git-bash for Windows 10?

From time to time, pressing Tab while typing something on git-bash gives me the following error instead of whatever tab completion was supposed to do: bash: cannot create temp file for here-document: ...
1
vote
1answer
531 views

How to use %LocalAppData% with git bash in Windows?

I want to automate my process of align and signing an APK (an app for Android). I use git bash as terminal inside VSCODE. For this I am concatenating the commands I need into a shell script but I got ...
1
vote
1answer
46 views

How to prevent that a ssh key that is used to perform git actions, is decrypted only once also when new terminals are opened subsequently on Windows?

Linux On my Linux system, I decrypt a private ssh key every time when I boot the system. Once booted I open a terminal and issue: ssh-add ~/.ssh/id_rsa_some_key and I am ready to perform git ...
3
votes
2answers
1k views

Why do i need prefix openssl with winpty on windows bash?

Why do i need prefix openssl with winpty on windows bash? Why does command openssl genrsa -des3 -out ca.key 4096 hangs and doesn't respond while winpty openssl genrsa -des3 -out ca.key 4096 is ...
0
votes
1answer
267 views

Git Bash does not recognize same command as windows command prompt

I am reproducing an NLP paper and I need to get evennia working on Windows 10, with Python 2.7. I cloned this repo and followed the instructions but cant start servers with start.sh 1, as it runs a ...
6
votes
1answer
1k views

How to disable git bash daily updates checking?

I've installed git bash and ticked the "Check daily for updates" option. I thought that it will update automatically, but it requires me to configure the set up manually each time. I don't update it ...
0
votes
1answer
41 views

How to detect whether use `.inputrc` or not

I need add "\e[1;5C": forward-word # ctrl + right "\e[1;5D": backward-word # ctrl + left in ~/.inputrc to make tmux works in msys2. But this would corrupt git-bash, how do I make only msys2 ...
0
votes
0answers
1k views

Git on Windows timeout on clone

I am trying to clone a git repository to my personal machine. However, trying to do so results in a timeout every time. I have done this in git-bash, git-cmd and cygwin with git core package installed,...
2
votes
2answers
3k views

Install Ansible in Windows, using Git-bash

I am trying to install the Ansible open source automation platform on Windows. There are many guides out there for how to install Ansible using Cygwin (eg. 1, 2). However, I already have Git-Bash ...
0
votes
1answer
395 views

Error writing lock file on Bash/nano using Python on Windows 10

I use $ sudo nano first.py or $ nano first.py to start a new nano file (in Python), while using Bash on Windows 10, but the file won't save. The error I get when I try to save the file is: [ ...
2
votes
1answer
2k views

bash: git: command not found

When I attempt to run git --version (or any git command) in git-bash, I get the following error: bash: git: command not found In Windows, I have C:\Program Files\Git\cmd in my Path system variable. ...
4
votes
2answers
8k views

Running PHP works in Command Prompt but not Git Bash

I've recently got a new laptop and have been in the process of setting it up. I've installed WAMP, which is what I use to do my PHP development (installs Apache2, MySql, and PHP). I also like to use ...
2
votes
0answers
215 views

Can't get msys2 to open windows home directory on startup

See this Github issue. Basically, I am trying to launch the msys2 shell and have the startup folder (and $HOME) refer to my Windows user home directory. Things I've tried: I tried changing the /etc/...
0
votes
2answers
1k views

Trying to launch Atom in Git bash

I create an alias $ echo 'alias atom="C:\Users\myUser\AppData\Local\atom\atom.exe"' >> ~/.bashrc I open bashrc file with VI editor and it shows the alias. But when I tried to use the alias ...
0
votes
1answer
351 views

rsync doesn't work when specifying location

Edit ssh user@192.168.0.11 Works fine, however; ssh user@192.168.0.11:/some/location doesn't work. ssh: Could not resolve hostname 192.168.0.11:/some/location: Name or service not known ...
0
votes
1answer
720 views

how do I use 'tree /F' command to git-bash on Windows?

I don't have enough reputation to comment there, so I have to ask a new question here. I can use cmd //c tree to use Windows' tree in git-bash for Windows. It only shows directory tree. If I want it ...
5
votes
2answers
7k views

Installing programs in git bash?

I'm running git bash on windows and I'd like to install some of the linux tools I'm familiar with but apt-get, yum, etc don't appear to work. How can I install programs in git bash?
4
votes
1answer
7k views

Where is the Git Bash `/` directory?

When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine? The directory C:...
7
votes
2answers
5k views

Can git-bash and cygwin shell do the same things?

On Windows 10, can git-bash and cygwin shell do the same things? What can one do but the other can't? For example, As shells, can they both work the same as bash? What programs and commands can run ...
0
votes
1answer
155 views

Periodic input to Windows gitbash terminal

My bash terminal is receiving a space (chr 32) immediately followed by a backspace (chr 8) every 5 seconds (almost exactly). The effects aren't noticeable when typing, as the added space is deleted ...