New answers tagged


Try stali, a suckless Linux distribution following KISS principle.


The correct configuration file to edit was /etc/sv/git-daemon/run, changing --base-path=/var/lib to --base-path=/home/git and /var/lib/git to /home/git #!/bin/sh exec 2>&1 echo 'git-daemon starting.' exec chpst -ugitdaemon \ "$(git --exec-path)"/git-daemon --verbose --reuseaddr \ --export-all --base-path=/home/git /home/git


The difference is because of some shell quoting specialties. If you execute either of these (they are equivalent ways of quoting in the shell) git log --pretty=format:'%ad %s%d' git log '--pretty=format:%ad %s%d' git log --pretty=format:%ad\ %s%d git log --pretty=form'at:%ad %'s%d git log --pretty=format:%ad" "%s%d git log --pretty=format:"%ad %s%d" git ...


I use a function to set my prompt dynamically. Here is my particular function, defined in my development environment initialisation script: function prompt_cmd { # Tell the terminal application (using escape sequences) what the CWD is. # (this comes from /etc/bashrc) update_term_cwd if [[ "$ORIG_PS1" == "" ]]; then export ORIG_PS1=$PS1 fi ...


I ended up using this file. Steps to get this to work: Create a file called in your home directory (~/ and copy the code from the link above into it. In your .bash_profile or .bashrc file, add this line: source ~/ Change your PS1 to this: PS1='\n$ \w$(__git_ps1 " (%s)"): '


What I do for this kind of thing is to change the value of PS1 when I change directories. This is trivial in zsh which executes the chpwd command; it can be done in bash by defining wrappers around cd and friends. cd () { builtin cd "$@" && chpwd; } pushd () { builtin pushd "$@" && chpwd; } popd () { builtin popd "$@" && chpwd; } ...


If you don't mind moving the files... You could do this by moving the files into a git repository, and symlinking them to their old locations; you'd end up with ~/gitrepo/somedir/otherdir/file1 moved from ~/somedir/otherdir/file1 ~/gitrepo/otherdir/somedir/file2 moved from ~/otherdir/somedir/file2 a symlink from ~/somedir/otherdir/file1 to ...


First, rewrite bee's history to move all files into the subdirectory: cd /path/to/bee git filter-branch -f --prune-empty --tree-filter ' dir="my fancy/target directory" if [[ ! -e "$dir" ]] then mkdir -p "$dir" git ls-tree --name-only $GIT_COMMIT | xargs -I files mv files "$dir" fi' git log --stat should show every file appearing under my ...

Top 50 recent answers are included