Skip to content

Commit 8c6f1e0

Browse files
committed
PR #49: Workshop
1 parent e8b2119 commit 8c6f1e0

1 file changed

Lines changed: 46 additions & 120 deletions

File tree

index.html

Lines changed: 46 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,10 @@ <h2 class="text-2xl font-bold text-white flex items-center gap-2">
277277
<div
278278
class="bg-devCard border border-devBorder p-5 rounded-xl space-y-2 hover:border-devBlue/30 transition">
279279
<div class="text-devBlue font-bold text-sm tracking-wide uppercase">Step 3: Modify Code</div>
280-
<p class="text-sm text-slate-400">Open the folder in VS Code (<code class="bg-black text-devBlue px-1 rounded text-xs">code .</code>). Locate the
281-
<code class="bg-black text-devBlue px-1 rounded text-xs">&lt;!-- EDIT ME --&gt;</code> tag and append your structured profile badge block right
282-
into the list.</p>
280+
<p class="text-sm text-slate-400">Open the folder in VS Code (`code .`). Locate the
281+
<code>&lt;!-- EDIT ME --&gt;</code> tag and append your structured profile badge block right
282+
into the list.
283+
</p>
283284
</div>
284285

285286
<div
@@ -323,8 +324,8 @@ <h4 class="font-medium text-white text-sm">SHEYCHAN SUBEDI</h4>
323324
<div
324325
class="bg-slate-900/60 border border-devBorder p-3 rounded-lg flex items-center justify-between hover:border-slate-700 transition">
325326
<div>
326-
<h4 class="font-medium text-white text-sm">Rubil Prajapati</h4> <!-- EDIT ME -->
327-
<span class="text-xs text-slate-500 font-mono">Roll: 16 (CS-1st Yr)</span> <!-- EDIT ME -->
327+
<h4 class="font-medium text-white text-sm">Binisha</h4> <!-- EDIT ME -->
328+
<span class="text-xs text-slate-500 font-mono">Roll: 42 (CS-1st Yr)</span> <!-- EDIT ME -->
328329
</div>
329330
<span
330331
class="text-xs bg-devBlue/10 text-devBlue border border-devBlue/20 px-2 py-0.5 rounded font-medium">Contributor</span>
@@ -1074,121 +1075,46 @@ <h3 class="text-lg font-bold text-white">SSH Key Authentication (Highly Recommen
10741075
overwrite faulty commits and states.
10751076
</p>
10761077

1077-
<div class="space-y-3 pt-2">
1078-
<div class="relative group">
1079-
<code
1080-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1081-
>git checkout -- &lt;file-name&gt;</code
1082-
>
1083-
<button
1084-
onclick="
1085-
copyToClipboard(this.previousElementSibling.innerText, this)
1086-
"
1087-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1088-
title="Copy to clipboard"
1089-
>
1090-
<i class="fa-regular fa-copy"></i>
1091-
</button>
1092-
<span class="text-[10px] text-slate-500 block mt-1"
1093-
>Discards local uncommitted updates in a target file to match
1094-
the last commit.</span
1095-
>
1096-
</div>
1097-
<div class="relative group">
1098-
<code
1099-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1100-
>git restore &lt;file-name&gt;</code
1101-
>
1102-
<button
1103-
onclick="
1104-
copyToClipboard(this.previousElementSibling.innerText, this)
1105-
"
1106-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1107-
title="Copy to clipboard"
1108-
>
1109-
<i class="fa-regular fa-copy"></i>
1110-
</button>
1111-
<span class="text-[10px] text-slate-500 block mt-1"
1112-
>Modern, safer standard to revert uncommitted local
1113-
modifications.</span
1114-
>
1115-
</div>
1116-
<div class="relative group">
1117-
<code
1118-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1119-
>git reset HEAD &lt;file-name&gt;</code
1120-
>
1121-
<button
1122-
onclick="
1123-
copyToClipboard(this.previousElementSibling.innerText, this)
1124-
"
1125-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1126-
title="Copy to clipboard"
1127-
>
1128-
<i class="fa-regular fa-copy"></i>
1129-
</button>
1130-
<span class="text-[10px] text-slate-500 block mt-1"
1131-
>Removes a specific file from staging area, retaining physical
1132-
contents.</span
1133-
>
1134-
</div>
1135-
<div class="relative group">
1136-
<code
1137-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1138-
>git commit --amend -m "new message"</code
1139-
>
1140-
<button
1141-
onclick="
1142-
copyToClipboard(this.previousElementSibling.innerText, this)
1143-
"
1144-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1145-
title="Copy to clipboard"
1146-
>
1147-
<i class="fa-regular fa-copy"></i>
1148-
</button>
1149-
<span class="text-[10px] text-slate-500 block mt-1"
1150-
>Overwrites the latest commit description message or appends
1151-
staged changes.</span
1152-
>
1153-
</div>
1154-
<div class="relative group">
1155-
<code
1156-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1157-
>git reset --hard HEAD~1</code
1158-
>
1159-
<button
1160-
onclick="
1161-
copyToClipboard(this.previousElementSibling.innerText, this)
1162-
"
1163-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1164-
title="Copy to clipboard"
1165-
>
1166-
<i class="fa-regular fa-copy"></i>
1167-
</button>
1168-
<span class="text-[10px] text-slate-500 block mt-1"
1169-
>Nukes the absolute latest local commit completely out of
1170-
existence. Use with caution!</span
1171-
>
1172-
</div>
1173-
<div class="relative group">
1174-
<code
1175-
class="bg-black text-[11px] text-devRed p-2 pr-8 rounded block font-mono select-all overflow-x-auto whitespace-nowrap border border-slate-900"
1176-
>git revert &lt;commit-hash&gt;</code
1177-
>
1178-
<button
1179-
onclick="
1180-
copyToClipboard(this.previousElementSibling.innerText, this)
1181-
"
1182-
class="absolute right-2 top-2 text-slate-500 hover:text-white transition opacity-0 group-hover:opacity-100 focus:opacity-100"
1183-
title="Copy to clipboard"
1184-
>
1185-
<i class="fa-regular fa-copy"></i>
1186-
</button>
1187-
<span class="text-[10px] text-slate-500 block mt-1"
1188-
>Creates a new commit reversing all changes made in specified
1189-
historical commit.</span
1190-
>
1191-
</div>
1078+
<!-- HTTPS with Personal Access Token (PAT) -->
1079+
<div
1080+
class="bg-devCard border border-devBorder rounded-xl p-6 space-y-5 hover:border-devOrange/30 transition">
1081+
<div class="flex items-center space-x-3">
1082+
<span
1083+
class="bg-devOrange/10 text-devOrange font-bold text-xs px-2.5 py-1 rounded-md border border-devOrange/20">METHOD
1084+
B</span>
1085+
<h3 class="text-lg font-bold text-white">HTTPS with Personal Access Token (PAT)</h3>
1086+
</div>
1087+
<p class="text-xs text-slate-400">Authenticate requests via secure API tokens. Perfect if you prefer
1088+
standard HTTPS URLs.</p>
1089+
1090+
<ol class="space-y-4 text-xs text-slate-300">
1091+
<li class="space-y-1">
1092+
<span class="font-bold text-white">1. Generate your Token on GitHub:</span>
1093+
<p class="text-slate-400">Go to GitHub.com → <strong class="text-white">Settings</strong>
1094+
<strong class="text-white">Developer Settings</strong><strong class="text-white">Personal
1095+
Access Tokens</strong><strong class="text-white">Tokens (classic)</strong>.
1096+
</p>
1097+
</li>
1098+
<li class="space-y-1">
1099+
<span class="font-bold text-white">2. Set Permissions & Scope:</span>
1100+
<p class="text-slate-400">Click <strong class="text-white">Generate new token
1101+
(classic)</strong>, set a description, choose an expiration date, check the box for
1102+
<strong class="text-white">repo</strong> access, and generate.
1103+
</p>
1104+
</li>
1105+
<li class="space-y-1">
1106+
<span class="font-bold text-white">3. Copy & Secure Token:</span>
1107+
<p class="text-slate-400">Copy the token immediately. <span
1108+
class="text-devOrange font-medium">Warning: GitHub will not show it again!</span> Save
1109+
it somewhere safe.</p>
1110+
</li>
1111+
<li class="space-y-1.5">
1112+
<span class="font-bold text-white">4. Authenticate in Terminal:</span>
1113+
<p class="text-slate-400">The next time you execute a command (like `git push`) and Git prompts
1114+
you for your GitHub Password, <strong class="text-white">paste this Token</strong> instead
1115+
of your normal account password.</p>
1116+
</li>
1117+
</ol>
11921118
</div>
11931119
</div>
11941120
</div>

0 commit comments

Comments
 (0)