Skip to content
/ ocgi Public

One command git init for git repositories on private server

License

Notifications You must be signed in to change notification settings

siriuspal/ocgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#ocgi

One command git init for git repository on private server. Written in Python.

I wrote this because I was not able to initialize remote repository without manually creating directories on server.

ABOUT & HOW TO USE

Run "python -m ocgi" command in current folder to make it a git repository. On server repository will be created in - server/repository root/parent directory/working directory

Needs OpenSSH public / private key pair. Key pair can be store in ~/.ssh directory. On Windows 10 this is C:\Users<username>.      

Add to Python path by creating .pth and add it to \Python35\Lib\site-packages OR directly copy this script to \Python35\Lib\site-packages

Tested on Windows 10 and Git server on Raspbian Jessie. Git on Windows Shell.