tctcab
原来网址都是有规律的,都是 https://raw.githubusercontent.com/your-username/repo-name/branch-name/
开头,写了个 Python 脚本来输出网址:
#!/usr/bin/env python3
prefix = "https://raw.githubusercontent.com/your-username/repo-name/branch-name/"
while True:
path = input("Enter file path: ")
print(prefix+path)
感谢dapengde 分享的经验,我写了个 Bash 脚本来自动推送图片:
#!/bin/bash
git add --all
git commit -m "update"
git push