TO PUSH ON GITHUB HANDSON ACTIVITY
Step-by-Step Git Commands Execution: Initialize a Git repository: git init Creates a new Git repository in the folder 24MCR082. Add a file to staging area: git add 24MCR082.txt Adds 24MCR082.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 status Shows that 24MCR082.txt has been modified but not staged. View commit log: git log Displays the commit history (one commit at this point). Add remote GitHub repository: https://github.com/Rohini218-ux/24MCR082.git Links the local repository to a remote GitHub repo. Check current branch: git branch Shows the current branch is master. Rename branch from master to main: git branch -M main Renames the current branch to main. Set Git global config for email and username: git config --global user.email git config --global user.name Sets your global Git identity. Push code to remote repo for the first time: git push -u origin main Pushes the main branch to GitHub and sets upstream tracking. Edit the file and add it again: git add 24MCR082.txt Commit the changes with updated message: git commit -m "Updated Personal Details" Creates a new commit after updating the file. Push the updated commit to GitHub: git push

Step-by-Step Git Commands Execution:
Initialize a Git repository:
git init
Creates a new Git repository in the folder 24MCR082.
Add a file to staging area:
git add 24MCR082.txt
Adds 24MCR082.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 status
Shows that 24MCR082.txt has been modified but not staged.
View commit log:
git log
Displays the commit history (one commit at this point).
Add remote GitHub repository:
https://github.com/Rohini218-ux/24MCR082.git
Links the local repository to a remote GitHub repo.
Check current branch:
git branch
Shows the current branch is master.
Rename branch from master to main:
git branch -M main
Renames the current branch to main.
Set Git global config for email and username:
git config --global user.email
git config --global user.name
Sets your global Git identity.
Push code to remote repo for the first time:
git push -u origin main
Pushes the main branch to GitHub and sets upstream tracking.
Edit the file and add it again:
git add 24MCR082.txt
Commit the changes with updated message:
git commit -m "Updated Personal Details"
Creates a new commit after updating the file.
Push the updated commit to GitHub:
git push