Initialize a Git repository:
git initCreates a new Git repository in the folder 24MCR054.

Add a file to staging area:
git add 24MCR054.txt
Adds 24MCR054.txt to the staging area.
Commit the file:
git commit -m "Added Personal Details"Creates a commit with the message "Added Personal Details".

Check Git status:
git statusShows that 24MCR054.txt has been modified but not staged.

View commit log:
git logDisplays the commit history (one commit at this point).

Add remote GitHub repository:
git remote add origin https://github.com/Kavi-26/24MCR054.gitLinks the local repository to a remote GitHub repo.

Check current branch:
git branchShows the current branch is main.

Rename branch from master to main:
git branch -M mainRenames the current branch to main.

Set Git global config for email:
git config --global user.email "26kaviyarasu2002@gmail.com"Sets your global Git identity.

Push code to remote repo for the first time:
git push -u origin mainPushes the main branch to GitHub and sets upstream tracking.

Then , Again We will Modify or add new file means we need to follow the same steps, like
git add .
git commit -m “message”
git push origin main
Github Repository:
Github link: https://github.com/Kavi-26/24MCR054

