git-bash

Execute commands from .bat file on Git Bash Terminal

早过忘川 提交于 2019-12-09 08:13:58
问题 I am newbie to Git bash. Just out of curiosity trying to make a .bat file which contains commands(Dont know if Git Bash supports .bat file) What I want to achieve is simply drag and drop this .bat file to Git Bash terminal and commands in the file get executed(Is it possible?). My commands in .bat file cd "C:\Users\USER\abc\xyz" cd "C:\Users\USER\abc\xyz\pqr" export HOME="C:\Users\USER\some_directory" export HOME2="C:\Program Files\directoy" 回答1: What I want to achieve is simply drag and drop

npm view get more items

人走茶凉 提交于 2019-12-08 17:41:43
问题 I am using the following command to look up versions of the packages that I have. npm view <packagename> versions The result that I get back is as follows '2.4.0-2016-10-06-6743', '2.4.0-2016-10-07-6750', '2.4.0-2016-10-07-6751', '2.4.0-2016-10-07-6754', '2.4.0-2016-10-07-6755', '2.4.0-2016-10-10-6763', '2.4.0-2016-10-11-6770', '2.4.0-2016-10-11-6790', '2.4.0-2016-10-12-6799', '2.4.0-2016-10-12-6800', '2.4.0-2016-10-13-6806', '2.4.0-2016-10-13-6807', '2.4.0-2016-10-13-6808', '2.4.0-2016-10-14

Trouble with Git on Windows 10

牧云@^-^@ 提交于 2019-12-08 14:44:41
This problem is not related to any git configuration nor repository, it's related with the Program Gith Bash and the OS Windows 10 It began once I installed and customized Git Bash on my Windows profile, it never appeared the Git icon on the toolbar, which was bothering me. So I start to go after some ways to fix it. (reinstalling never worked) In an attempt to erase all customizations I made on Git Bash I deleted everything related to Git from the Windows Registry Editor, which at the time I thought would solve the problem but only made it worse. Now I can't even start my Git Bash, it's sort

Scrapy startproject not working with git-bash

杀马特。学长 韩版系。学妹 提交于 2019-12-08 08:06:12
问题 I'm working on win7 on a system with git-bash. I've installed Miniconda and loaded scrapy using: conda install -c scrapinghub scrapy I've set the environmental variables to contain: C:\Miniconda2;C:\Miniconda2\Scripts Now within the scrapy vitualenv, when I do : (scrapy) $ scrapy startproject scrapytest sh: scrapy: command not found How do I use the scrapy command line tool here? 回答1: I don't know how git-bash has effect on this, but installing scrapy registers one entry point, a console

Git for Windows equivalent for open current directory command

*爱你&永不变心* 提交于 2019-12-08 07:00:48
问题 I am using the Git for Windows "git bash" command line on Windows and can't seem to find an equivalent in it for the open current directory command "cmd ." I can't find any documentation but if someone can point me to a list of commands for Git for Windows or let me know what the equivalent is I would appreciate it. 回答1: Lets say I have a file called index.html and from the command line I want to use a command that would pull up this file up in sublime text which is my default text editor.

How to ask Gitbash to authenticate me again after my authentication failed the first time?

故事扮演 提交于 2019-12-08 06:07:12
问题 Git bash asked for my username and password and I incorrectly entered my password on accident. It won't prompt me again for my user name and password so I can't do any git commands. Is there a command I can use to have it prompt me for the username and password again. 回答1: If you are working with https, you need to remove that URL from the credential storage you are using. See: "Managing Remotes / Updating credentials from the OSX Keychain Updating credentials from the OSX Keychain", if you

IPython Notebook %%bash Magic Error

我只是一个虾纸丫 提交于 2019-12-08 03:15:37
问题 I'm trying to follow a version control tutorial in an IPython Notebook by Fernando Perez, a static version of which can be found here. He uses the %%bash magic extensively, but When I use it I get the following error: ERROR: Cell magic function %%bash not found. Even though when I use the !git command; everything works fine. Specifics: C:\Python27\Scripts; C:\Program Files (x86)\Git\cmd; C:\Program Files (x86)\Git\bin\; Are all added to my system path. I'm running the 0.13.2 version of

How can I select text in git bash terminal in Windows 7 without mouse?

試著忘記壹切 提交于 2019-12-07 16:21:10
问题 I am on Windows 7 and I have Git Bash at my disposal after installing Git for Windows. I found mouse inconvenient to select-copy-paste in terminal window. What is the shortcut for text selection (like Shift + ← , Shift + → in Notepad editor)? I have seen many irrelevant verbose replies to this question, but all, what I am looking for is just an appropriate shortcut (like Ctrl + Insert for Copy and Shift + Insert for Paste). - Thank you. 回答1: It is best to install a CMD enhancer like ConEmu.

Git diff fails on file with underscore in path

≡放荡痞女 提交于 2019-12-07 16:13:57
问题 I'm running Windows 7, and I have the latest version of git (2.7.2.windows.1). I previously used Windows PowerShell as my terminal for git operations, with no issues. Recently, I decided to switch to Git Bash, but I'm having one major issue. My project has a directory (within which are many subdirectories) whose name is simply an underscore. Whenever I try to run git diff on a file within that directory, I get the following error: $ git diff _/css/templates/jquery.tag-editor.css fatal:

GIT Bash for windows gives no result and returns to command prompt

≯℡__Kan透↙ 提交于 2019-12-07 15:58:52
问题 I'm a new user of GIT on windows. I have been using GIT on linux for a while but for some reason, I need to use GIT on windows. Now my problem is GIT bash for windows does not perform any remote operation and returns to command prompt with no msgs. For eg: git fetch, git pull, git remote show origin, etc will give you no result. Where as it does give me output for local operations like git log, git branch, git commit, etc. Also the GIT GUI Client gives error "Command Failed" for remote