git-bash

Warning of RSA host key while cloning git repository

﹥>﹥吖頭↗ 提交于 2020-01-24 12:42:02
问题 I am using git bash to clone my github repository and getting warning continuously I am using SSH so, I use this git command: git clone git@github.com:TapanHP/HTextView but it gives warning like this Warning: Permenantly added the RSA host key for IP address to the list of known hosts Enter passphrase for key 'c/users/tapanhp/.ssh/id_rsa': what is this passphrase? and why this happens? 回答1: The SSH connection to GitHub uses RSA, a form public key cryptography. This means that you have a

git commit error with sublime text 2 [duplicate]

 ̄綄美尐妖づ 提交于 2020-01-22 16:18:45
问题 This question already has answers here : How can I make Sublime Text the default editor for Git? (16 answers) Closed 3 years ago . I'm taking the course "How to Use Git and GitHub" on Udacity. I'm following along with the examples but I've run into a problem. I've been at it trying to fix the problem via googling and trial and error by myself for about two hours. I think it's about time to make a StackOverflow post. I prefer trying to figure out my issue without posting on StackOverflow, but

git commit error with sublime text 2 [duplicate]

送分小仙女□ 提交于 2020-01-22 16:18:25
问题 This question already has answers here : How can I make Sublime Text the default editor for Git? (16 answers) Closed 3 years ago . I'm taking the course "How to Use Git and GitHub" on Udacity. I'm following along with the examples but I've run into a problem. I've been at it trying to fix the problem via googling and trial and error by myself for about two hours. I think it's about time to make a StackOverflow post. I prefer trying to figure out my issue without posting on StackOverflow, but

Extend $PATH variable in git bash under Windows

与世无争的帅哥 提交于 2020-01-22 13:27:06
问题 I'm trying to extend my $PATH variable in git bash (MinGW shell) by adding the following to the file ~/.bashrc PATH=$PATH':/c/Program Files/maven/apache-maven-3.2.5/bin' After I did this and restarted the bash it seems like that the $PATH variable was extended like expected: $ echo $PATH MANY_OTHER_PATHS:/c/Program Files/maven/apache-maven-3.2.5/bin But I still cannot execute the programms in the given directory: $ mvn bash: mvn: command not found What went wrong here? How do I extend the

Node command not working in git bash terminal on windows

佐手、 提交于 2020-01-22 10:57:08
问题 I'm trying to run the node command in my git bash terminal. When I run the node command, nothing happens when I press enter. The $ goes away and it just leaves a blinking cursor on the next line without the > . My-PC MINGW32 / $ node -v v4.5.0 My-PC MINGW32 / $ where node C:\Program Files\nodejs\node.exe My-PC MINGW32 / $ node _ Could someone tell me what the issue could be? Thanks!! 回答1: If you're not getting a new line with a > after entering "node" - this is probably because newer versions

Why does git pull hang?

你说的曾经没有我的故事 提交于 2020-01-22 05:43:19
问题 When I do a git pull , from the git bash, the terminal usually runs the pull, updates my local, and then hangs. I'm not sure if it's waiting for me to do something, but I usually exit out of this with CTRL-C . After that, I get that an index.lock is preventing me from doing other things to which I have to delete it. Am I misunderstanding how git pull works? 回答1: You may need to remove unnecessary git objects such as dangling commits & blobs : git fsck && git gc --prune=now git-fsck : Verifies

Git bash Error: Could not fork child process: There are no available terminals (-1)

有些话、适合烂在心里 提交于 2020-01-19 18:32:03
问题 I have had up to 8 git bash terminals running at the same time before. Currently I have only 2 up. I have not seen this error before and I am not understanding what is causing it. Any help would be appreciated! Picture attached: 回答1: Found a similar issue and solution in google groups I opened a windows command prompt and ran the command $ tasklist It looks as though the ssh connections I had made in my git bash shells weren't being closed when those windows were closed and were hanging the

Git bash Error: Could not fork child process: There are no available terminals (-1)

為{幸葍}努か 提交于 2020-01-19 18:31:21
问题 I have had up to 8 git bash terminals running at the same time before. Currently I have only 2 up. I have not seen this error before and I am not understanding what is causing it. Any help would be appreciated! Picture attached: 回答1: Found a similar issue and solution in google groups I opened a windows command prompt and ran the command $ tasklist It looks as though the ssh connections I had made in my git bash shells weren't being closed when those windows were closed and were hanging the

How do I extract a file name into 2 parts, making one into directory and the other one inside of it?

旧时模样 提交于 2020-01-15 19:12:54
问题 I'm trying to sort all mp3 files by artist and name. At the moment, they're in 1 giant file name. E.g Artist - Song name.mp3 I want to convert this to Artist/Song name.mp3 Here's what I've tried so far. In this case, I was using a test file named "hi\ -\ hey": #!/bin/bash # filters by all .mp3 extensions in the current working directory for f in *.mp3; do # extract artist and song name and remove spaces artist=${f% -*} song=${f#*- } #make directory with the extracted artist name and move +

Why does visual studio exclude BIN and OBJ folders at Azure DevOps checkin

为君一笑 提交于 2020-01-13 12:47:21
问题 I want to know what is the generic way to check-in code on Azure DevOps from Visual Studio or Git-Bash that has been coded in Visual Studio. The problem that occurs is the bin folder contains many third party dll's which are kept in the source before building the project. Those third party dll's are necessary to project. However after check-in to Azure DevOps the bin and obj are not present. This happens due to .gitignore and .gitattribute files. I have deleted both the files and checked in