Create a new repository on GitHub and push files to it using Git.
Task Overview
Learn how to create a repository on GitHub.
Initialize a local Git repository and connect it to the remote repository.
Push files from your local machine to the remote repository.
Task Details
Watch a tutorial video or read an article on creating repositories on GitHub.
Sign in to your GitHub account.
Click on the "+" icon in the top-right corner and select "New repository" from the dropdown menu.
Provide a name for your repository (e.g., "frontend-bootcamp-tasks") and an optional description.
Choose the visibility (public or private) for your repository.
Optionally, select the option to initialize the repository with a README file.
Click on the "Create repository" button to create the repository on GitHub.
Now, let's move to the local machine:
Open a terminal or command prompt and navigate to your project directory.
Initialize a new Git repository in your project directory using the command:
git init
Add the files you want to push to the repository. For example, if you have an HTML file called "index.html" and a CSS file called "styles.css" in your project directory,
Style and create anything you wish for which contains at least 10 element tags like div , h1 , p , a , all the other try to style each and every one of them in different variants
use the following command to add them:
git add .
Commit the changes with a descriptive message using the command:
git commit -m "Initial commit"
Connect your local repository to the remote repository on GitHub using the following command:
Task 3: Creating a Repository and Pushing Files
Objective:
Create a new repository on GitHub and push files to it using Git.
Task Overview
Task Details
Now, let's move to the local machine:
Open a terminal or command prompt and navigate to your project directory. Initialize a new Git repository in your project directory using the command:
git init
Add the files you want to push to the repository. For example, if you have an HTML file called "index.html" and a CSS file called "styles.css" in your project directory,
Style and create anything you wish for which contains at least 10 element tags like div , h1 , p , a , all the other try to style each and every one of them in different variants
use the following command to add them:
git add .
Commit the changes with a descriptive message using the command:
git commit -m "Initial commit"
Connect your local repository to the remote repository on GitHub using the following command:git remote add origin https://github.com/your-username/frontend-bootcamp-tasks.git
Push the changes to the remote repository using the command:
git push origin master
Verify that the files have been pushed to your GitHub repository by visiting the repository's page on GitHub.
Task Submission
Take a screenshot of your GitHub repository showing the pushed files. Share the screenshot on the issues comment of this issue.