-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetgit.html
More file actions
71 lines (67 loc) · 2.08 KB
/
getgit.html
File metadata and controls
71 lines (67 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="synacknetwork.com">
<title>GetGitZio - GitHub Repo .zip </title>
<style>
body {
background-color: #2f2f2f;
color: white;
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
}
input, button {
padding: 10px;
font-size: 16px;
margin: 5px;
}
#downloadLink {
display: none;
margin-top: 20px;
font-size: 18px;
color: white;
}
#downloadLink:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Get Git Repo .zip</h1>
<h2>Enter GitHub Repository</h2>
<input type="text" id="repoInput" placeholder="e.g., GitUser/repo-name">
<br>
<button onclick="generateDownloadLink()">Get .zip link</button>
<br><br>
<a id="downloadLink" href="#" download>Download Repo</a>
<script>
function generateDownloadLink() {
const input = document.getElementById("repoInput").value.trim();
const downloadLink = document.getElementById("downloadLink");
if (input.includes("/")) {
downloadLink.href = `https://github.com/${input}/archive/refs/heads/main.zip`;
downloadLink.textContent = "Download Repo";
downloadLink.style.display = "inline";
} else {
alert("Please enter a valid repository in the format 'owner/repo-name'");
}
}
</script><br>
Enter Username and Repo ONLY.<br>
https://github.com/githubtraining/hellogitworld<br>
You would enter: githubtraining/hellogitworld
<br>
<br>
<br>
Code grabs GitHubRepo/Branch/main.zip.<br>
Sometime's faster when on the go....<br>
<p>Made by
<a href="http://synacknetwork.com" target="_blank" style="color: white;">SynAckNetwork</a><br>
01.17.2025
</p>
<br><br><br>
</body>
</html>