|
# Windows
|
|
# Windows
|
|
## Win 10-11
|
|
## Win 10-11
|
|
|
|
### если у вас уже есть файлы sshkey и sshkey.pub
|
|
|
|
_Что-бы начать запустите povershell от имени администратора_
|
|
|
|
`@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
|
|
|
|
`choco install -y python3 git.install`
|
|
|
|
`Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0`
|
|
|
|
`Get-Service ssh-agent | Tee-Object Start-Service`
|
|
|
|
`Get-Service -Name ssh-agent | Set-Service -StartupType Manual`
|
|
|
|
`ssh-add sshkey`
|
|
|
|
`ssh -T git@hub.mos.ru`
|
|
|
|
`git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"`
|
|
|
|
`git clone git@hub.mos.ru:romazanovrushan/Project-38.git`
|
|
|
|
`cd Project-38`
|
|
|
|
`python -m pip install pillow Django`
|
|
|
|
`python3 manage.py migrate`
|
|
|
|
`python3 manage.py runserver`
|
|
|
|
|
|
|
|
### если ключей нет
|
|
|
|
_Что-бы начать запустите povershell от имени администратора_
|
|
|
|
`@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
|
|
|
|
`choco install -y python3 git.install`
|
|
|
|
`Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0`
|
|
|
|
`Get-Service ssh-agent | Tee-Object Start-Service`
|
|
|
|
`Get-Service -Name ssh-agent | Set-Service -StartupType Manual`
|
|
|
|
`ssh-keygen -t rsa -f sshkey`
|
|
|
|
`Get-Content sshkey.pub`
|
|
|
|
-добавь выведенные данные на [mos.hub](https://hub.mos.ru/-/profile/keys)-
|
|
|
|
`ssh-add sshkey`
|
|
|
|
`ssh -T git@hub.mos.ru`
|
|
|
|
`git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"`
|
|
|
|
`git clone git@hub.mos.ru:romazanovrushan/Project-38.git`
|
|
|
|
`cd Project-38`
|
|
|
|
`python -m pip install pillow Django`
|
|
|
|
`python3 manage.py migrate`
|
|
|
|
`python3 manage.py runserver`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Linux/UNIX
|
|
# Linux/UNIX
|
... | | ... | |