Search code examples
ubuntugnusmalltalk

Can't run GNU Smalltalk gst; fatal: not a git repository (or any of the parent directories): .git


I just installed GNU Smalltalk gst on Ubuntu and when I enter gst into the terminal, I get this:

fatal: not a git repository (or any of the parent directories): .git

How can I solve this?


Solution

  • The problem is that there's a conflict between the Smalltalk gst command and, evidently, an alias provided by the git package installation called gst which probably does a git status. This cause has been indicated in other linked answers (e.g., here), but those answers don't tell you what to do to solve it.

    There are a couple of ways this can be solved easily:

    You can undo the alias that the git installation setup by doing an unalias in your login profile. Make sure you put it after any global profile is executed:

    unalias gst
    

    Or, if you want to keep the gst alias as git status, create a new alias for GNU Smalltalk, such as:

    alias gnust={path to your GNU Smalltalk gst program}
    

    Then just type gnust to get Smalltalk.