<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Typespace]]></title><description><![CDATA[Typespace]]></description><link>https://typespace.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 20:11:47 GMT</lastBuildDate><atom:link href="https://typespace.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[My media projects were too large]]></title><description><![CDATA[I tried to push and upload my local project to GitHub, but encountered an issue. My file was too large, it's .mp4 video that exceeds 100 MB.]]></description><link>https://typespace.hashnode.dev/my-media-projects-were-too-large</link><guid isPermaLink="true">https://typespace.hashnode.dev/my-media-projects-were-too-large</guid><category><![CDATA[GitHub]]></category><category><![CDATA[Gitcommands]]></category><category><![CDATA[projects]]></category><category><![CDATA[commit]]></category><dc:creator><![CDATA[Vee]]></dc:creator><pubDate>Sat, 14 Nov 2026 08:48:55 GMT</pubDate><content:encoded><![CDATA[<p>I forgot if my local project has large file, it was a video.</p>
<p>Then it affected my GitHub repository when I uploaded through my terminal in VS Code, you can read my latest story <a href="https://typespace.hashnode.dev/how-to-push-your-project-to-github">here</a> .</p>
<img src="https://cdn.hashnode.com/uploads/covers/68a9a02998b67929c4b82a73/25d1be22-3587-4baa-b1d4-59116302374f.png" alt="" style="display:block;margin:0 auto" />

<p>I asked ChatGPT to identify my errors because when I read it, I didn't read it thoroughly and couldn't understand it until I saw it again. The error shows:</p>
<pre><code class="language-plaintext">File references/interactions/workflow-interactions.mp4.mp4
is 133.25 MB.

This exceeds GitHub's file size limit of 100 MB.
</code></pre>
<p>From there it was clear my media file was more than 100 MB. Fortunately my repository already exists on my GitHub account, however, some of my project files haven't been pushed successfully yet.</p>
<h2>Why this happened?</h2>
<p>One of my projects I uploaded to GitHub has file larger than 100 MB and obviously GitHub rejects it because of it stated in their <a href="https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-large-files-on-github">docs</a>.</p>
<p>Even if I had to delete that big file, Git may still attempt to upload it because it's already included in my initial commit.</p>
<p>So, I kept the file locally, but excluded it from GitHub. And ChatGPT guided me to fix the local Git history without affecting an existing remote version.</p>
<h3>Step 1: Add the video to <code>.gitignore</code></h3>
<pre><code class="language-shell">Add-Content .gitignore "`n# Local interaction reference videos`nreferences/interactions/*.mp4"
</code></pre>
<p>This prevents Git from tracking my video (.mp4) file in that folder in the future.</p>
<h3>Step 2: <strong>Remove the video from Git tracking</strong></h3>
<p>This command kees my video on my laptop, but it removes from Git's index—<strong>not from my local folder</strong>.</p>
<pre><code class="language-shell">git rm --cached -- "references/interactions/workflow-interactions.mp4.mp4"
</code></pre>
<h3>Step 3: <strong>Check the changes</strong></h3>
<p>Then I could see if the video staged for removal and updated <code>.gitignore</code></p>
<pre><code class="language-shell">git status
</code></pre>
<h3>Step 4: <strong>Change my initial commit</strong></h3>
<p>I typed and ran this command to stage the updated <code>.gitignore</code></p>
<pre><code class="language-shell">git add .gitignore
</code></pre>
<p>Then update the existing commit:</p>
<pre><code class="language-shell">git commit --amend --no-edit
</code></pre>
<p>This replaced the original commit with one that doesn't include the oversized video because my <code>v1.0.0</code> tag was created before the amended commit, it still references the old commit. So, we need to update it too.</p>
<h3>Step 5: <strong>Update Version 1.0.0 tag and push to GitHub</strong></h3>
<p>Now the tag updated to the right commit after I ran this command:</p>
<pre><code class="language-shell">git tag -d v1.0.0
git tag -a v1.0.0 -m "Version 1.0.0 - Initial workflow UI baseline"
</code></pre>
<p>Then we push to the main repository,</p>
<pre><code class="language-shell">git push -u origin main
</code></pre>
<p>and upload the version tag:</p>
<pre><code class="language-shell">git push origin v1.0.0
</code></pre>
<p>I could now see your project files and the <code>v1.0.0</code> version tag in my repository.</p>
]]></content:encoded></item><item><title><![CDATA[How to push your project to GitHub]]></title><description><![CDATA[This is how I learn to not memorize the git commands, but to study it when build the project at the same time.]]></description><link>https://typespace.hashnode.dev/how-to-push-your-project-to-github</link><guid isPermaLink="true">https://typespace.hashnode.dev/how-to-push-your-project-to-github</guid><category><![CDATA[GitHub]]></category><category><![CDATA[Gitcommands]]></category><category><![CDATA[commits]]></category><category><![CDATA[commit messages]]></category><category><![CDATA[projects]]></category><category><![CDATA[Learning Journey]]></category><dc:creator><![CDATA[Vee]]></dc:creator><pubDate>Fri, 13 Nov 2026 19:50:53 GMT</pubDate><content:encoded><![CDATA[<p>I used to forget the steps to push my project inside my laptop to Github repository. Maybe because I rarely coding any projects, or I even tried to memorize the git commands instead to understand it.</p>
<p>However, I learned this in a fun way when I build personal vibe coding project in Cursor with the guidance from ChatGPT to help me understand what are those git commands for and how to push, commit, and initiate the new repository.</p>
<p>I wrote this in case I forget, and I always can back to read it again.</p>
<h2>Check before initiate</h2>
<p>First, I opened the terminal inside my VS Code then check for GitHub CLI by run these commands:</p>
<pre><code class="language-shell">git --version 
gh --version
</code></pre>
<p>Luckily I already installed GitHub CLI few months ago.</p>
<p>I learned that lets you create GitHub repositories directly from the terminal, but I don't know yet if my GitHub account already signed in here. So, I run this command again:</p>
<pre><code class="language-shell">gh auth login
</code></pre>
<p>Then in terminal asks me to choose <a href="http://github.com">github.com</a>, HTTPS, and browser authentication when prompted. And before I continue uploading, ChatGPT suggested me to create or add this inside my <code>.gitignore</code> file:</p>
<pre><code class="language-plaintext"># Dependencies
node_modules/

# Build output
dist/
build/

# Environment variables and secrets
.env
.env.*
!.env.example

# Logs
*.log
npm-debug.log*

# Local editor files
.vscode/
.idea/

# Operating system files
.DS_Store
Thumbs.db
</code></pre>
<p>I ensure my <code>.gitignore</code> file exists to <strong>prevent unnecessary files, large folders, and sensitive information from accidentally being uploaded to GitHub.</strong></p>
<p>It keeps my repository clean, lightweight, secure, and easier to manage.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text"><p>Remember to not upload API keys, authentication tokens, passwords, or private <code>.env</code> files. Including the images or videos if your repository is open for public.</p></div>
</div>

<p>Once again I checked if my project already has Git initialized.</p>
<pre><code class="language-shell">git status
git remote -v
</code></pre>
<h2>Create new repository</h2>
<p>Apparently Git reports that my file is not a repository, so I had to initialize it.</p>
<pre><code class="language-shell">git init
git branch -M main
</code></pre>
<p>After I ran that commands, my Git is already initialized and I checked <code>.env</code> to show me an existing remote, I already ensured it won't push to wrong repository. Yet, I didn't follow ChatGPT guidance.</p>
<pre><code class="language-shell">git config --global user.name "YOUR_GIT_NAME"
git config --global user.email "YOUR_GIT_EMAIL"
</code></pre>
<p>I skipped this part where later I got a problem because I think my GitHub account already signed in within VS Code—I thought I didn't need to do that.</p>
<p>So, I quickly ran another commands where my files already exist.</p>
<pre><code class="language-shell">git add .
git status
</code></pre>
<p>And created my first commit</p>
<pre><code class="language-shell">git commit -m "chore: initial workflow UI implementation"
</code></pre>
<p>Then created an annotated version tag—to help me see the changelog. This means the changes belong to that Version 1.0.0</p>
<pre><code class="language-shell">git tag -a v1.0.0 -m "Version 1.0.0 - Initial workflow UI baseline"
</code></pre>
<h2>Encounter the errors</h2>
<p>After I made version tag <code>git tag -a v1.0.0 ...</code> successfully, I had errors because I made mistakes as I said earlier.</p>
<p>The <code>gh repo create ...</code> and <code>git push origin v1.0.0</code> were failed because GitHub CLI isn't authenticated and the <code>origin</code> remote doesn't exist yet. I don't need to restart Git initialization, recreate your commit, or create another tag.</p>
<p>Here's five steps I did to fix it:</p>
<h3>Step 1: Log in to GitHub</h3>
<p>In the terminal I started to run this command again,</p>
<pre><code class="language-shell">gh auth login
</code></pre>
<p>because apparently I hadn't log in any of my GitHub account yet, that's why I encountered the error in my command earlier. Then GitHub CLI shows this:</p>
<table>
<thead>
<tr>
<th>Questions</th>
<th>Select</th>
</tr>
</thead>
<tbody><tr>
<td>Where do you use GitHub?</td>
<td><a href="http://github.com">github.com</a></td>
</tr>
<tr>
<td>Preferred protocol</td>
<td>HTTPS</td>
</tr>
<tr>
<td>Authenticate Git with GitHub credentials?</td>
<td>Yes</td>
</tr>
<tr>
<td>How would you like to authenticate?</td>
<td>Login with a web browser</td>
</tr>
</tbody></table>
<p>It displayed a one-time code and ask me to press Enter to open the browser to log in my GitHub account with the access tokens inside my terminal.</p>
<h3>Step 2: Verify my login</h3>
<p>After completing my authentication, I did this</p>
<pre><code class="language-shell">gh auth status
</code></pre>
<p>to see if I'm already logged in to <a href="http://github.com">github.com</a></p>
<h3>Step 3: Create new repository (again)</h3>
<p>Since there's no repository uploaded on my Github when I checked my profile, I needed to run the same command again:</p>
<pre><code class="language-shell">gh repo create workflow-ui-component --private --source=. --remote=origin --push
</code></pre>
<p>That should create a new private repository, link it as <code>origin</code>, and push your existing commits.</p>
<h3>Step 4: Push my Version 1.0.0 tag</h3>
<p>Once the repository has been created successfully, I checked if it uploaded in my existing local version tag to GitHub</p>
<pre><code class="language-shell">git push origin v1.0.0
</code></pre>
<h3>Step 5: Confirm everything worked</h3>
<p>I confirmed all things work inside my project by running this command:</p>
<pre><code class="language-shell">git status
git remote -v
git tag
</code></pre>
<p>Then open the repository:</p>
<pre><code class="language-shell">gh repo view --web
</code></pre>
<p>I could now see my project on GitHub, including its commit history and <code>v1.0.0</code> tag. Further, I ran this:</p>
<pre><code class="language-shell">gh auth login
</code></pre>
<p>Eventually I finally succeed creating the repository, but I found another problem I didn't expect, you can read here .</p>
<hr />
<h2>Save for future versions</h2>
<p>Since I used Antigravity to vibe code my project, I have to remind myself every changes there must be pushed to GitHub, so I can have checkpoint.</p>
<p>ChatGPT suggested after fixing one single component or element in styling I should run this command again to make a commit:</p>
<pre><code class="language-shell">git add .
git commit -m "fix: refine workflow card styling and connector handles"
git push origin main
</code></pre>
<p>Then if I was ready to update next version:</p>
<pre><code class="language-shell">git tag -a v1.1.0 -m "Version 1.1.0 - Workflow visual refinements"
git push origin v1.1.0
</code></pre>
<h2>Sources to learn more</h2>
<ol>
<li><a href="https://github.com/git-guides/git-init">Git Guides - git init</a></li>
<li><a href="https://www.datacamp.com/tutorial/git-init?utm_cid=19589720824&amp;utm_aid=157156375831&amp;utm_campaign=230119_1-ps-other~dsa-tofu~all_2-b2c_3-apac_4-prc_5-na_6-na_7-le_8-pdsh-go_9-nb-e_10-na_11-na&amp;utm_loc=9125808-&amp;utm_mtd=-c&amp;utm_kw=&amp;utm_source=google&amp;utm_medium=paid_search&amp;utm_content=ps-other~apac-en~dsa~tofu~tutorial~git&amp;gad_source=1&amp;gad_campaignid=19589720824&amp;gbraid=0AAAAADQ9WsFaE-SVPwzkT-lK-z4AYgRs8&amp;gclid=EAIaIQobChMI74uVj9uCmAMVPoZmAh24WBPSEAAYASAAEgK2HfD_BwE">Git Init: How to Initialize and Set Up a Git Repository | DataCamp</a></li>
</ol>
]]></content:encoded></item></channel></rss>