/bridge

Say you want to clone a repo to a server, but for some mysterious reason you can neither scp nor git clone. Welcome to the show, bridge

Primary LanguagePython

bridge

Have you ever needed to clone a repo to a server, but scp and git clone were not an option?

Unlikely, I know. But I have. And bridge is now my best friend.

Usage

  1. [OPTIONAL] Change main.py. Add your exclusions
if __name__ == "__main__":
[...]
    exclusions: list[str] = [
        r'.*\.git.*',
        r'.*\.md',
    ]                       # Add pattens to exclude files from copy
[...]
  1. Run script, specifying the path with -p [PATH]
python3 ./main.py -p path/to/copy/from
  1. Copy the contents of bridge.py to the server

  2. Make it executable and run!

chmod +x bridge.py
./bridge.py