Make maintaining multiple repositories easier. Repox works on MacOS, Linux and Windows (Powershell 7).
See /bin
If the remote doesn't have a default branch set you may get an error like
fatal: ref refs/remotes/origin/HEAD is not a symbolic ref
You can set it with (run in the branch you want to be the default)
git remote set-head origin --auto
Setting an alias lets you run repox like any other program from the command line without setting it in PATH.
code ~/.bash_profile
.bash_profile file
alias repox='<Absolute path to repox folder>/bin/repox-<os and arch>'
Reload the .bash_profile file
source ~/.bash_profile
Test it
repox help
Open the profile file via Powershell. The file will be created to C:\Users\username\Documents\Powershell if it doesn't exist.
code $PROFILE
Microsoft.PowerShell_profile.ps1 file
function repoxZig {
& "<Absolute path to repox folder>\bin\repox.exe" @args
}
Set-Alias repox repoxZig
Reload the Microsoft.PowerShell_profile.ps1 file
. $PROFILE
Test it
repox help
Install Zig (0.13.0) from https://ziglang.org/download/. The OS libc
library needs to be available. Follow the OS's instructions on how to install it. On POSIX clang and on Windows the "Windows SDK Standalone" are also needed for the build.
To build run
zig build
The compiled binary can be found in /zig-out/bin
Checkout git checkout js
for the Node version