Performs checkout to a new branch for a task
gitfeat <task-name>
-
Compile your Go script into a binary:
Compile your script into a binary by running:
go build .
-
Move the binary to a directory in your PATH:
Create a directory for your custom binaries. You can create a
bin
directory in your home directory:mkdir ~/bin
Move the
gitfeat
binary to this directory:mv gitfeat ~/bin
-
Add the directory to your PATH in Fish shell:
Open your Fish shell configuration file
~/.config/fish/config.fish
:nano ~/.config/fish/config.fish
Add the following line to this file to include the
bin
directory in your PATH:set -gx PATH $HOME/bin $PATH
Save the changes to the configuration file.
-
Reload Fish configuration:
After saving the changes, reload your Fish configuration to apply the changes:
source ~/.config/fish/config.fish
-
Test your setup:
You should now be able to run
gitfeat <task_name>
from anywhere in your terminal, and it should execute yourgitfeat
script with the specified task name.