写个将文件到上传Github的html代码
时间: 2024-06-06 10:07:33 浏览: 115
<!DOCTYPE html>
<html>
<head>
<title>Upload to Github</title>
</head>
<body>
<form action="https://github.com/user/repo/upload/master" method="post" enctype="multipart/form-data">
<label for="file">Select File:</label>
<input type="file" id="file" name="file"><br><br>
<label for="commit">Commit Message:</label>
<input type="text" id="commit" name="commit"><br><br>
<label for="description">Description:</label>
<input type="text" id="description" name="description"><br><br>
<button type="submit">Upload</button>
</form>
</body>
</html>
Note: Replace "user" and "repo" in the form action URL with your Github username and repository name respectively. Also, make sure to authenticate the upload with your Github account.
阅读全文
相关推荐


















