What you need
Before you can use Anchor4Git, you need Git installed on your computer.Install Git
- Go to https://git-scm.com/
- Download the version for your operating system
- Run the installer (the default options are fine)
- Open a terminal (Command Prompt on Windows, Terminal on Mac/Linux)
- Type
git --versionto verify it’s installed — you should see something likegit version 2.40.0or similar
Use Anchor4Git
The temporary way (easy & recommended):This does installs the command on your device only temporarily and is rather directly use. Both
pipx and uvx can be used.
If you don’t haveAlternative (with permanent installation):pipx, install it first:pip install pipx
On some systems you may need to usepip3instead ofpip.
Verify the installation
If you are not using the temporary method, then run this command:
You can also run anchor4git --help
You should see a help screen showing all available commands. If you see an error like “command not found”, try closing and reopening your terminal.
What gets installed
Two commands become available on your computer if not using the temporary method:
Both do exactly the same thing. Use whichever is easier for you.
If you use the temporary method, always use the full command.
For example,
pipx anchor4git and then include the command you want to run,like
pipx anchor4git fetch
Further in the documentation, only
ag has been used. Please replace it with whatever method is suitable for you.