Questions tagged [git-bash]

Git Bash is a bash shell bundled with Git for Windows that enables use of Git from the command line.

Git for Windows provides a Bash emulation environment used to run Git and a small set of Unix tools from the command line.

2696 questions
1
vote
1 answer

GIT SSH is not Working

I previously had the problem My Problem in stackoverflow Question and that is solved by the answer provided by our stackoverflow community member. Now i tried to use ssh for cloning one of the protected repository in Windows 7, so first i created…
Mohamed Hussain
  • 6,577
  • 14
  • 47
  • 78
1
vote
2 answers

Error using curl from git-bash to install chef

I am trying to use git-bash in win 7 to use the chef omnibus installer. I tried the following: $ curl -L https://opscode.com/chef/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current …
user1592380
  • 26,587
  • 62
  • 220
  • 414
1
vote
1 answer

RegExp: Last occurence of pattern that occurs before another pattern

I want to take a text pattern that occurs the last before another text pattern. For example I have this text: code 4ab6-7b5 Another lorem ipsum Random commentary. code f6ee-304 Lorem ipsum text Dummy text code: ebf6-649 Other random text id-x:…
Jacob Krieg
  • 2,430
  • 10
  • 60
  • 114
1
vote
3 answers

How do I prevent git from thinking new directories are part of the working tree?

My home directory is a git repository. But to allow me to freely create/delete/test code without cluttering up git status, my .gitignore has an explicit ignore all: [svenglar@my_box ~]$ cat ~/.gitignore ## Ignore everything by default. ## Use 'git…
svenglar
  • 157
  • 2
  • 8
1
vote
3 answers

Create an alias for several git commands

I generally use these commands on branch 'work' with git git commit -a -m "blah! blah!" git checkout master git merge work git checkout work I have heard about git aliases. Is it possible to combine all these commands into one via aliases or…
user2286243
1
vote
1 answer

git-shell merging to a different path

I have one problem with my git remote repository. I have create a git user for a git-shell access. When someone join in the shell the home path is /home/git/, and this is ok. The problem is: my repository path is /var/www/ and I want give the…
Ideabile
  • 181
  • 1
  • 7
1
vote
1 answer

git errors sharing files among Windows and Mac

I recently had a problem wit git couldn't merge because of HEAD and these files. (Netbeans said) So I tried doing it with Git Bash and it gave me some errors about .DS_Store. So I removed those files and now when I try to merge, almost all files…
Muqito
  • 1,311
  • 2
  • 13
  • 27
1
vote
1 answer

how do I tell cake where to look for coffee?

Setting up the express coffee app that twilson63 built. It seems that cake can't find coffee, but they both are ok with which. Is there something else I need to do here? Here's my steps: jcollum@DEVELOPER01 ~/dev/express-coffee-master $ which…
jcollum
  • 36,681
  • 46
  • 162
  • 279
1
vote
1 answer

Git bash `cp` – Exclude "protected operating system files" (and what are those?)

If I try to copy my home directory using cp in Git bash (on Windows 7), more than I want will be copied. The following is an example to demonstrate the issue. In reality I want to copy recursively, but I don't in this example to speed things…
lydell
  • 927
  • 9
  • 15
1
vote
1 answer

git bash shell not find /etc

After installing MSysGit on my new Win7 laptop, I moved my users directory (C:\Users) to my D: disk and created a hardlink from C:\Users to D:\Users. This seems to work for most programs, however the git bash shell can no longer seem to find /etc…
Llaves
  • 585
  • 6
  • 18
1
vote
1 answer

Understanding weird character syntax in PS1 bash prompt

Here is my bash prompt: Here is the PS1 that generates that PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]`__git_ps1` \$ ' Now, here is the stuff I understand: $debian_chroot - used for…
CuriousMind
  • 31,669
  • 24
  • 84
  • 127
1
vote
1 answer

Is there a way to force a committer to enter their username in Git Bash

I have a code base that some of the developers work on via RDP and use the IDE that is on the remote machine. I would like to know if there is a way to force them to enter their own name when committing changes. Right now Git is defaulting to my…
Bill.Caffery
  • 345
  • 1
  • 3
  • 19
1
vote
1 answer

msysgit: Prevent the Git bash from locking files of running shell scripts

I have some scripts that are (always) running during development. Trying to write to these files in Windows 7 fails (git pull fails with Permission denied error). Everything works fine in Linux. Can I prevent Git bash from locking the files without…
Juve
  • 9,866
  • 12
  • 58
  • 81
1
vote
1 answer

How to run awk in gnuplot scripts via msysgit bash

My gnuplot scripts use awk to preprocess some data. Everything works fine in Linux. But I also like to run these scripts in Windows. Most of the time I use the Git Bash (msysgit) for my command line work in Windows. This saves me from maintaining…
Juve
  • 9,866
  • 12
  • 58
  • 81
1
vote
2 answers

using git for web testing and deploying live site

At the minute I have a local git repo which sits in H: drive. When I make changes to the files and save them, they are stored here. I can then commit, push and pull the files and branches to and from a remote repo on my git server. What I would…
MikeyJ
  • 394
  • 1
  • 4
  • 16
1 2 3
99
100