git-cli-tool/
├── cmd/
│ └── main.go
├── internal/
│ ├── cli/
│ │ ├── input.go
│ │ └── menu.go
│ └── git/
│ ├── commands.go
│ ├── squash.go
│ └── utils.go
├── go.mod
└── README.md
cd <your-directory-where-you-placed-it>
go build -o git-cli ./cmd/main.go #To build the binary file.
sudo mv git-cli /usr/local/bin/
cd /path/to/your/other/repository
git-cli
sudo rm /usr/local/bin/git-cli #To delete the file from the entire system.