Tag: bash

git bash on windows (mingw64) editing .bash_profile ps1

I am following the Udacity course where in Lesson 1 video 29. they talk about customizing the git bash and setting up workspace. I did dig into how the .bash_profile should be edited and it almost works as I want it. Except I can’t figure out how to add a new line in front of […]

Git bash under windows

I am getting crazy, while trying to write a companion script to help developers in my team to look up for changes in master branch. My goal is to create a bahs/sh script to seek for ALL git repos on the developer machine, check if they were related to a certain client and them, aply […]

git command with command substitution doesn't return anything

bash: GNU bash, version 4.3.42(4)-release (x86_64-pc-msys) OS: Windows7 git: git version 2.6.4.windows.1 Without command substitution, directly executing git commands would return correct answers. $ git write-tree 76cb4719e27c7d77ef396992b3ba90cd98d22fcd But when I execute some git commands with command substitution, it would return nothing. $ echo “`git write-tree`” $ echo “$(git write-tree)” But the most strange thing is: […]

Showing git status on Mac terminal not working with custom bash profile

I want to display my current branch status (like * meaning modified) when in a git repo over the terminal like the below. BUT, it is always displaying the following even when I switch to a git repo. ᴾᴋᴹɴ iFeelNewsBot master wrong… ↪ When I open a new tab in my terminal it shows the […]

How to change the browser for accessing git help pages?

The problem is that whenever I’m trying to use git help pages, it is showing me the following error: Suyash@BaazWorkstation MINGW64 ~/Desktop/Git (master) $ git help log /usr/bin/start: line 8: cmd: command not found fatal: ‘web–browse’ appears to be a git command, but we were not able to execute it. Maybe git-web–browse is broken? I […]

why git clone do nothing in my php

I want to execute git clone in my php. As the code below: <?php exec(‘git clone git@github.com:xxx/xxx.git /home/xxx’, $out); foreach($out as $info){ echo $info.”</br>”; } ?> After execute it, the target project is not clone into my local directory and the $info has no data and there are no error information. I try git clone […]

git add, commit via expect script

in my work in order to use git, github we need to login, by using a function git_login < user_name > which is a built in function of a script named git.sh, then it asks for the user password. I’m trying to automate this process, the expect script shows me that I logged in, but […]

Uninstall git bash from rails?

How can I uninstall git bash from rainstaller? It had thrown some errors when it was time to put user and mail in the latest version of rainstaller. I am thinking of preventing it from running when I use Ruby from prompt. I expect a more elegant way than to delete the git directory.

Docker – run error on window git bash for -v

I run docker in my win10, but use -v params has a error. docker run –privileged=true -d –name=ubuntu14.04 -v e:/docker/data:/data ubuntu /bin/bash error: C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused “exec: \”C:/Program Files/Git/usr/bin/bash\”: stat C:/Program Files/Git/usr/bin/bash: no such file or directory”. When I ls this path just like […]

Git for Web Developing

I’m attempting to create a set of git repositories and web folders in a server using the post-update hook. It would be something like: //server/dev (for dev files) and //server/web (the apache main path) The post-update hook for the //server/dev git repositories: #!/bin/sh unset GIT_DIR PROJECT=`basename $(pwd)` cd ../../web/${PROJECT} echo “Updating `pwd`…” git reset –hard […]

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