Tag: bash

git grep and xargs in Windows Batch file?

I am trying to create a Windows friendly .bat implementation of the following .sh script. The top few lines are all fine, just add SET and cd is fine. git grep is fine, however, xargs isn’t… What would the git grep | xargs logic look like in .bat ? INFINITY=10000 TOPDIR=$(pwd) METEOR_DIR=”./code” cd “$METEOR_DIR” # […]

Can't get Gulp to work on Git Bash

So I’m new in all this git ambient, I’ve been trying to learn JavaScript and as part of the course/book I’m following I have to use Git and Gulp, but I’ve been having trouble getting the local Gulp to work: $ gulp module.js:442 throw err; ^ Error: Cannot find module ‘C:\Program Files\Git\node_modules\gulp\bin\gulp.js’ at Function.Module._resolveFilename (module.js:440:15) […]

Random tag applied to every git commit

Background: Docker Hub allows for autobuilding of images by pointing to Github and building on either- commit made to a specific branch name commit made with a specific tag name Docker Hub also doesn’t allow for versioning of images with the same tag, meaning that if an image is build with tag :version_1, and later, […]

Git clone using ssh has a timeout

Hi guys I would just like to share some of my problem on git. I have been cloning on different unit and all of them were successful. But now I have encounter on a unit that would not let me clone or even pull. here is there error: ssh: connect to host port 22: Connection […]

Git alias command for add/commit/push with multiple inputs

I want to have an alias which lets you add a file, commit and push it. I started off with this: [alias] acp = “!f() { git add $1; }; f” But whenever I put in an input, I get a file not found error: fatal: pathspec ‘test.txt’ did not match any files Ideally I […]

bower install ECMDERR error – yo angular generator

I am using yeoman’s angular generator to scaffold an angular project on my windows 7 machine. After the generator is done. I run the command ‘bower install’ and get this error : git bash log Here are the things I’ve tried so far : Running ‘ git config –global url.”https://”.insteadOf “git://” ‘ and then running […]


Im trying to clone a project from TortiseSVN through GIT Bash. Part way through the cloning process an exception happens and the GIT Bash console stops cloning and shows the line: “0 [main] perl 10436 cygwin_exception::open_stackdumpfile: Dumping stack trace to perl.exe.stackdump” This creates a log file with the following content: Exception: STATUS_ACCESS_VIOLATION at rip=0048360C10C rax=000000060245EBE0 […]

Tab completion within quotes?

In my GNU bash, version 4.3.11 I am using git and sometimes in comments I want to mention the files I changed. When doing so, I try to use the tab completion, so that I just have to type the first characters of the file name and then get it auto completed with the tab: […]

How to get a list of git repositories from bit bucket to be used as variables in bash script?

I am trying to write a bash script that takes all of the repositories I have on bitbucket and backs them up locally. I am stuck trying to get a list of repos from bitbucket. I have read a little bit of their api that does this, and I even tested it. But it’s just […]

Git hook not executing gulp without absolute path

I have a git hook (written in bash) on pre-commit which is supposed to execute the command “gulp“. When I manually run the bash script, it works perfectly. But when a commit is done, the hook script is called and executed but does not work is the same way as when manually invoked. The hook […]

Git Baby is a git and github fan, let's start git clone.