https://github.com/noclin/git-scp
upload git repo over scp directly
https://github.com/noclin/git-scp
Last synced: 7 months ago
JSON representation
upload git repo over scp directly
- Host: GitHub
- URL: https://github.com/noclin/git-scp
- Owner: NoCLin
- Created: 2023-03-10T13:06:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T08:38:00.000Z (over 2 years ago)
- Last Synced: 2025-01-21T14:17:33.327Z (9 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git-SCP
[PyPI](https://pypi.org/project/git-scp/)
Upload your Git Repo to Server directly (without Git push, pull and server).
As we are all aware, Git over SSH/TCP functions effectively and Git is a decentralized protocol.
However, in my experience, when uploading to an SCP path `/path/to/dir/`,
we can only set the remote URL to the `.git` folder.
The remote URL should be `ssh://user@server:/path/to/dir/.git`.To address this issue, I have developed the tool.
By simply typing `git-scp user@server:/path/to/dir`, it will upload the current Git repository to `/path/to/dir` on the remote server.## Install
recommended:
```
pipx install git-scp
```or
```
pip install git-scp
```## Usage
```
usage: git-scp [-h] [remote]
````git-scp user@server:/path/to/dir` : upload to user@server:/path/to/dir
`git-scp`: upload to last path
## reference
- https://www.ruanyifeng.com/blog/2022/10/git-server.html