Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.55 KB

WindowsDevelopment.creole

File metadata and controls

53 lines (41 loc) · 1.55 KB

Only some notes to development under Windows...

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 notes

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)