Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Setting up a GitHub Repository and Configuration

Tech 1

To begin, register an account on the official GitHub website at https://github.com/.

After successful registration, proceed with basic configuration by creating a new repository.

Oncee the repository is created, navigate to its main page.

Create a local directory and open it.

Right-click within the directory and select 'Git Bash Here' (ensure Git is installed). This will open a terminla interface.

Execute the following command to initialize the local repository:

git init

Stage all changes using:

git add .

Alternatively, stage specific files with:

git add <filename>

Link the local repository to the remote GitHub repository by running:

git remote add origin https://github.com/username/repository-name.git

Push the local changes to the remote repository with:

git push -u origin main

Build your project using:

npm run build

The build output generates a dist folder. Move this folder into the previously created local directory.

Then execute the following commmands:

git add .
git commit -m "initial commit"
git push -u origin main

Access your repository settings and set GitHub Pages to use the main branch.

Visit your custom domain or GitHub Pages URL to view the deployed project.

For future updates, follow this workflow:

git add .
git commit -m "update description"
git push origin main
Tags: GitHubgit

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.