git-bash

Why isn't git bash transforming the path to *nix notation for my python installation?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 19:39:38
Working on Windows 7, I've installed git with the git bash and then installed python and am having trouble running it from the command line. Here's what I've learned so far: *nix uses : as a path separator. Therefore C:/Users/Someone would be seen as two separate paths. *nix uses /c/users/someone notation instead. When I run echo $PATH from git bash, every path there (including Node, which I only just installed now, after everything else) is using the correct /c/ notation-- --except Python, which still has the C:/ notation, and is therefore not accessible from the terminal since it can't find

Git commits for each push

旧街凉风 提交于 2019-12-04 18:27:44
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? 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 fetch anytime between your commits, you have spoiled your reflog of where origin/master was when you began your

How to pass an argument with space from bash script to bash script?

走远了吗. 提交于 2019-12-04 17:33:31
I have a script the manipulates data, creates arguments and sends them to a second script. One of the arguments contains a space. script1.sh: args=() args+=("A") args+=("1 2") args+=("B") . script2.sh ${args[@]} script2.sh: for f in "$@" do echo f=$f done I'd like to get "1 2" as single argument, but receive them separately: f=A f=1 f=2 f=B I tried also converting the input in script2 to list in=($@) and iterating over it using for f in ${in[@]} but got the same result. So, the problem might be in one of the following: building the list of arguments ; passing the built list ; parsing the input

Can I use gcloud in Git Bash on Windows?

泄露秘密 提交于 2019-12-04 17:09:48
问题 So, I've installed Git, Git Bash, Python2.7, and I've just installed the Google Cloud SDK per the official guide. Using Windows 10. In cmd.exe, or the "Google Cloud SDK Shell", gcloud works fine. Within Git Bash, however (the terminal that I prefer to use), gcloud returns the following output (screenshot). echo $PATH in Git Bash does include the path to the Google SDK (highlighted here). Am I missing something? Is there anything in $PATH that is possibly conflicting with gcloud, or did I

Permission denied when pushing file to remote

心已入冬 提交于 2019-12-04 16:46:47
I previously used git bash for local repository. I have connected to a GitHub account and I always pushed my files without any problem. Later, I have uninstall the bash and reinstall again with new user and email. Now when I try to push the file to remote I got an error: Permission to SyedMiraj/SpringSecurityWithTicketBooking.git denied to biid-sua. unable to access 'https://github.com/SyedMiraj/SpringSecurityWithTicketBooking.git/': The requested URL returned error: 403 I have tried and created a new SSH key and add it in the remote repo. But the problem is still existing and truly speaking I

How to push to GitHub using Git Bash?

别说谁变了你拦得住时间么 提交于 2019-12-04 15:25:57
Whenever I need to push my new local commits to GitHub I use the Windows GitHub desktop application. I open it up and click the sync button. I want to be able to do it from the Git Bash command line. I think the command I want to use is: git push origin master but when I do that I get some sort of invalid username error. I tried this: https://stackoverflow.com/a/20871910/280319 but when I do that and git push origin master I get another error saying git@github.com:user/repo.git is an invalid repo. Now I'm at the point where I changed my origin back to https://github.com/user/repo.git (I think

Error when trying to extract hyperledger artifacts

北城余情 提交于 2019-12-04 13:09:20
i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0 0 976 0 --:--:-- 0:00:01 --:--:-- 988 gzip: stdin: not in gzip format tar: Child returned status 1 tar:

Passport local strategy and cURL

拥有回忆 提交于 2019-12-04 03:30:37
I would like to test my node.js + express + passport.js test application (RESTful) with CURL. My code: var express = require('express'); var routes = require('./routes'); var http = require('http'); var path = require('path'); var passport = require('passport'); var LocalStrategy = require('passport-local').Strategy; // Define the strategy to be used by PassportJS passport.use(new LocalStrategy( function(username, password, done) { if (username === "admin" && password === "admin") // stupid example return done(null, {name: "admin"}); return done(null, false, { message: 'Incorrect username.' })

Getting errors when using GitHub for Windows

这一生的挚爱 提交于 2019-12-04 01:07:17
问题 I suddenly got errors when I was using git last week, for no apparent reason. I only have access to a windows PC. The errors I'm getting doesn't seem to give me any clear answers as to what went wrong, how, and what I need to do to fix it. The error happened right after I cloned an empty repository, and I've been uninstalling and reinstalling GitHub for Windows ever since, I usually only use the Git Shell that comes installed with, but the GUI is also having problems doing anything beyond

Git-Bash Command Prompt won't open up after upgrading to Windows 10

只愿长相守 提交于 2019-12-04 00:40:15
问题 I just upgraded my OS to Windows 10 and Git Bash won't even open up anymore. I might need to uninstall and re-install it again but I was just wondering if anyone else ran into this problem after upgrading to Windows 10 and what their fix was other than un-installing and re-installing ? 回答1: There have been few instances where other users who have upgraded to windows 10 are facing similar issues with respect to Git Bash and git in general. An issue has been opened with msysgit on GitHub.