1.
create a new folder by name "helloworld"
2.create a text file names "index.html" in it.
3.at the folder in addressbar type cmd and press enter to open command prompt.
4.Once the terminal opens, type the following command to initialize the folder as a
Git repository
"git init"
This command creates a hidden .git folder in your directory, turning it into a Git
repository.
5.To check the current status of files, run "git status" in cmd prompt.
6.Add files to the Git staging area using:
"git add ."
7.The . adds all files in the folder. You can also specify individual files if
needed.
8.After adding files, commit your changes with a message
"git commit -m "Initial commit""
9.Link to a GitHub Repository
On GitHub, create a new repository:
Go to GitHub and log in.
Click the + icon in the upper-right corner and choose New repository.
Name your repository, for example, HelloWorld, and then click Create repository.
Back in your terminal, link the local repository to the newly created GitHub
repository by running:
"git remote add origin https://github.com/your-username/HelloWorld.git"
Replace your-username with your actual GitHub username, and HelloWorld with the
name of the repository.
10.Push Your Code to GitHub
Push your local commits to GitHub with
"git push -u origin main"
The -u flag sets the upstream for future pushes and pulls, meaning you can simply
run git push in the future without specifying the remote and branch.
11.Pull Changes from GitHub
If you want to pull updates from the remote GitHub repository to your local
machine, you can use:
"git pull origin main"
This will sync your local repository with the changes from the GitHub repository.