[petsc-dev] git worktree

Barry Smith bsmith at petsc.dev
Wed May 19 10:29:30 CDT 2021


  Lawrence,

    Oh, I always use that, (even now) my prompt is miles long. Didn't help me at all, I still messed up constantly; my brain ignores what my eyes clearly see. I need more than a clear sign post telling me where I am, I need a hammer that hits me whenever I do something wrong in the terminal :-). 

  Barry



> On May 19, 2021, at 9:46 AM, Lawrence Mitchell <wence at gmx.li> wrote:
> 
> 
> 
>> 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