-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHow-to-upload-files-on-github.html
More file actions
89 lines (82 loc) · 3.24 KB
/
How-to-upload-files-on-github.html
File metadata and controls
89 lines (82 loc) · 3.24 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<title>How to upload files on github</title>
<style>
* {
box-sizing: border-box;
}
body {
background-color: aqua;
}
h3 {
color: blue;
margin-bottom: 7px;
margin-left: 20px;
margin-right: 15px;
font-weight: 400;
}
span {
font-size: large;
color: green;
}
.span-container {
border: 1px solid blue;
background-color: white;
}
</style>
</head>
<body>
<h1 class="text-center mt-2" style="color: blue; font-weight: 400;">Uploading files on github</h1>
<hr color="blue">
<h3>1. Go to the github official website and create your account.</a></h3>
<h3>2. Then create your repository.</h3>
<h3>3. Go to the folder in which you have stored your files.</h3>
<h3>4. Open the command prompt or terminal there and navigate to that folder.</h3>
<h3>5. Initialise a git repository using the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git init</span>
</div>
<h3>6. Add the file using the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git add file_name</span>
</div>
<h3 class="text-center">or</h3>
<h3>7. Add all files using the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git add .</span>
</div>
<h3 class="text-center">or</h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git add --all</span>
</div>
<h3 class="text-center">or</h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git add -A</span>
</div>
<h3>8. Commit the text using the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git commit -m "commit_name"</span>
</div>
<h3>9. Copy the origin url of your repository.</h3>
<h3>10. Run the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git remote add origin</span> <span style="background-color: yellow;">origin_url</span>
</div>
<h3>11. Push your file to your git repository using the command - </h3>
<div class="pl-3 pr-3 pb-1 mb-3 span-container mx-auto" style="width:fit-content;">
<span>git push -f origin master</span>
</div>
<hr color="blue">
<h3 class="text-center py-1" style="color: blue;">All done, Enjoy...</h3>
<hr color="blue">
<div class="text-center">
<h4 style="color: blue; font-weight: 400;">By...</h4>
<h4 style="color: blue; font-weight: 400;">Suarav Kumar Sharma</h4>
</div>
</body>
</html>