git-bash

fatal: could not read Username for 'https://github.com': No such file or directory

无人久伴 提交于 2019-12-17 17:38:36
问题 I have the following problem when I try to pull code, using GIT Bash on windows I already tried to implement the accepted solution provided here: Error when push commits with Github: fatal: could not read Username but the problem persists. After adding/removing origin I still get the same error. fatal: could not read Username for 'https://github.com': No such file or directory 回答1: Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys OR git remote add

Can not activate a virtualenv in GIT bash mingw32 for Windows

大城市里の小女人 提交于 2019-12-17 08:24:57
问题 When I try to activate my virtualenv from GIT bash mingw32 I do not get the expected response. NOTE: py is the folder for Python projects in my Google Drive folder. hy is the virtualenv folder that was made when I ran virtualenv --distribute hy . s3z@s3z ~/Google Drive/py/hy $ Scripts/activate So you see, there is no expected (hy) that appears before s3z@s3z ~/Google Drive/py/hy s3z@s3z ~/Google Drive/py/hy $ Scripts/activate.bat Scripts/activate.bat: line 1: @echo: command not found Scripts

Can not activate a virtualenv in GIT bash mingw32 for Windows

為{幸葍}努か 提交于 2019-12-17 08:24:11
问题 When I try to activate my virtualenv from GIT bash mingw32 I do not get the expected response. NOTE: py is the folder for Python projects in my Google Drive folder. hy is the virtualenv folder that was made when I ran virtualenv --distribute hy . s3z@s3z ~/Google Drive/py/hy $ Scripts/activate So you see, there is no expected (hy) that appears before s3z@s3z ~/Google Drive/py/hy s3z@s3z ~/Google Drive/py/hy $ Scripts/activate.bat Scripts/activate.bat: line 1: @echo: command not found Scripts

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

孤人 提交于 2019-12-17 08:00:06
问题 Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed? 回答1: You no longer need to type in bash.exe path manually. This answer is deprecated. Now you can switch to bash directly. Just make sure you have git installed. Install Git from https://git-scm.com/download/win. Then open Visual Studio Code and open the command palette using Ctrl + Shift + P . Then type "open user setting", and

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

試著忘記壹切 提交于 2019-12-17 07:59:46
问题 Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed? 回答1: You no longer need to type in bash.exe path manually. This answer is deprecated. Now you can switch to bash directly. Just make sure you have git installed. Install Git from https://git-scm.com/download/win. Then open Visual Studio Code and open the command palette using Ctrl + Shift + P . Then type "open user setting", and

Git commits for each push

痴心易碎 提交于 2019-12-14 03:43:03
问题 Is there a way to retrieve a list of commits for the latest push? For example let's assume i'm doing 10 local commits but a single push, is there a git command showing just these 10 commits? 回答1: You say i'm doing 10 local commits so let's assume you did one of git clone whatever git pull immediately before you did # edit stuff git commit -a # repeat 9 more times and then git push Now you can see these 10 commits with the command git log origin/master@{1}..origin/master But if you did git

how to resolve this ERROR running one or more of the platform when i am runnning “ionic run android --device”

流过昼夜 提交于 2019-12-13 14:48:09
问题 $ ionic run android --device Running command: "C:\Program Files\nodejs\node.exe" C:\Users\user\Desktop\transroads\jvdappNew\jvdApp\hooks\after_prepare\010_add_platform_class.js C:/Users/user/Desktop/transroads/jvdappNew/jvdApp add to body class: platform-android ERROR running one or more of the platforms: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. You may not have the required environment or OS to run

How to remove a file beginning with a dash (in Unix like mode) [duplicate]

吃可爱长大的小学妹 提交于 2019-12-13 10:19:58
问题 This question already has answers here : How do I deal with a filename that starts with the hyphen (-) character? (4 answers) Closed 4 years ago . I have accidentally created a file in GitBash (a Unix like environment) with the name - -l (I have absolutely no idea how I managed to do this in the first place :) Johnny (master #) scipy-tentative-numpy-tutorials $ ls -l total 1 -rw-r--r-- 1 Johnny Administ 956 May 7 16:24 - -l -rw-r--r-- 1 Johnny Administ 562 May 7 16:21 README.md I wish to

How can I change one string in multiple files in few subdirectories? [duplicate]

佐手、 提交于 2019-12-13 05:14:54
问题 This question already has answers here : Find and replace with sed in directory and sub directories (7 answers) Closed last year . My question is how can I change one word in many txt files in one directory and multiple subdirectories in BASH? I did as below (check all similar topics) but it is still not working. changePhrase is a name of directory where the subdirectories and files are. Inside that files there is a string that I want to change. I have to make it with a for loop (it's a task)

Vagrant and git bash

我的未来我决定 提交于 2019-12-13 05:09:03
问题 I like to use git bash instead of windows command prompt. I've just installed vagrant and Vbox. When I vagrant init in git bash I get d:\Program Files\Vagrant\embedded\bin\ruby.exe: No such file or directory -- d:/ Program/lib/vagrant/pre-rubygems.rb (LoadError) When I call the command in command prompt it works, I'm trying to tear myself away from guis im quite new to CLIs anyone know whats up? 回答1: I was having the same problem, I uninstalled vagrant, renamed C:\Users\%USER%\.vagrant.d to