1
vote
0answers
16 views

Git prompt won't colorize

I want my git prompt in bash to colorize (green for clean repos, red for dirty repos). Right now, it shows plain white text no matter the git state of my cwd/repo. ...
0
votes
0answers
29 views

Init.d script not updating git repository

I have the following init.d script running on my ubuntu machine: # /etc/init.d/do-updates cd /home/ubuntu/Fox;git pull sudo /home/ubuntu/Fox/batch_update_process.py 1>> ...
0
votes
0answers
40 views

Bash Script for Git Checkout

How do we create a bash script to do a git checkout on a couple of previous commits? cd /Users/testuser/testproject for i in `cat /Users/testuser/Desktop/commits.txt` do git checkout $i I have this ...
5
votes
1answer
292 views

Git autocomplete is asking for a password, not sure why

I'm running into an issue with autocomplete using git... I am using ubuntu 12.10 and when I perform the following keystrokes g i t Space Bar Tab I am presented with the error Pseudo-terminal ...
1
vote
1answer
189 views

bash: how to make smarter auto-complete on tab press

Using the git status command, I had: modified: conf/test.conf Is it possible to configure bash in that way so when I type git diff *test.conf and press TAB for auto-complete, it would expand it ...
2
votes
2answers
935 views

Git Branch in ZSH Prompt?

When working on a git repository with multiple branches, how do I modify my zsh prompt to include my current active branch?
7
votes
2answers
1k views

How to alias 'git' to 'g' so that bash-completion rules are preserved?

If I do this: alias g='git' I loose all completion rules (i.e. branches and remotes are no longer being automatically completed when I hit TAB after typing, for example g push o).
2
votes
1answer
725 views

git-ls-files: command not found

I googled this command and it said it is provided via git-man, which I have installed. Anybody having issues with this command not being found? It appears based on git-ls-files manpage that we can ...