[petsc-dev] git worktree

Lawrence Mitchell wence at gmx.li
Wed May 19 09:46:19 CDT 2021



> On 19 May 2021, at 15:38, Barry Smith <bsmith at petsc.dev> wrote:
> 
>   I tried the multiple clone approach first but found I was constantly thinking I was in a different branch than I was in as I went between clones and messing up my working directory and getting confused and frustrated. So I developed some of my tools because I was unable to utilize my brain and working memory to work essentially at all with a multi-clone environment. If one can handle a multi-clone environment then parts of my tools are not needed.

FWIW, and this may be useful anyway, I use the prompt stuff shipped with git https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh

so that I know what branch I'm on and if the working directory is dirty etc...

I too can't remember anything...

Lawrence


More information about the petsc-dev mailing list