Only some notes to development under Windows...
- Download git portable from: https://git-scm.com/download/win
- Extract somewhere, e.g.: \foo\bar\git\
- Call \foo\bar\git\post-install.bat
Copy/edit this batch file "cmd_git_shell.cmd" to get into a working shell:
@echo off title %~0 set GIT_BIN=P:\foo\bar\git\cmd call:test_exist "%GIT_BIN%\git.exe" "git.exe not found here:" set PATH=%GIT_BIN%;%PATH% call:test_exist cmd_shell.cmd "cmd_shell.cmd not found here:" call cmd_shell.cmd pause @goto:eof :test_exist if NOT exist "%~1" ( echo. echo ERROR: %~2 echo. echo "%~1" echo. pause exit 1 ) goto:eof
start cmd with cmd_git_shell.cmd and do this:
C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup> mkdir src C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup> cd src C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup\src> git clone https://github.com/jedie/PyHardLinkBackup.git C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup\src> cd pyhardlinkbackup C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup\src\pyhardlinkbackup> pip uninstall pyhardlinkbackup C:\Users\FooBar\AppData\Roaming\pyhardlinkbackup\src\pyhardlinkbackup> pip install -e .
git config will be saved to: %USERPROFILE%\.gitconfig (e.g.: C:\Users\FooBar\.gitconfig)
info | path | example |
---|---|---|
git config | %USERPROFILE%\.gitconfig | C:\Users\FooBar\.gitconfig) |
ssh files | %USERPROFILE%\.ssh\ | C:\Users\FooBar\.ssh\id_rsa) |