New answers tagged

-1

Try stali, a suckless Linux distribution following KISS principle.


0

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


2

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 ...


0

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 ...


1

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


2

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; } ...


4

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 ...


2

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