问题描述
我正在尝试将文件推送到我的私人远程 Github 存储库。但是,只有提交消息被发送,文件不是。你知道发生了什么吗?
repo_dir = 'local-backups/'
remote = f"https://{git_user}:{git_password}@github.com/xxxx/backups.git"
repo = Repo(repo_dir)
repo.git.add(update=True)
repo.index.commit("Added backup to Git")
origin = repo.remote(name="origin")
origin.push()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)