[ProgClub programming] Announcing the base() shell function
jedd.rashbrooke at gmail.com
Wed Jun 19 18:32:21 AEST 2019
On Wed, 19 Jun 2019 at 17:30, John Elliot V | ProgClub <jj5 at progclub.org>
> I'm not sure I follow. How does that git config help you change directory?
Put that alias into your git config.
Use 'git root' to show git repo you're in. It won't be confused by
submodules, presence of .svn directories, etc.
Optionally have an alias:
* alias wtaf='cd $(git root)'*
.. to do the actual forcible relocation to the root of the current git
repository, assuming that you're lost within directory structures often
enough that this is useful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the programming