forked from AnsarulHaq786/Git-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremote.html
26 lines (25 loc) · 1.07 KB
/
remote.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Remote</title>
<link rel="stylesheet" href="remote.css">
</head>
<body>
<p>
Before publishing your committed file you need to follow these steps<br>
<h4>Rename branch name</h4>
Previously in github there used to be master branch but nowadays the main branch is considered the <br>initial branch. Main branch implementation is done by github but vs code editor haven't yet <br>implemented the change. Hence, we rename branch name.
<h5>Use this command to rename branch</h5>
<i>git branch -M main</i>
</p>
<p>
After that we add origin to the repository<br>
<h5>Use this command to add origin</h5>
<i>git remote add origin <-https url from the code section of respective branch-></i><br><br>
After this we push our file into github main origin branch<br>
<a href="index.html">Go back to the previous page</a><br>
</p>
</body>
</html>