Create and Push a Personal Info Text File to GitHub Using Git

This hits important keywords like: create, push, text file, personal info, GitHub, and Git — all helpful for search visibility. Machine Learning Day - 1 Step 1 : Create a folder with the 24MCR105 Step 2 : Create a text file inside the above folder with personal information Step 3 : Create a git repository named as 24MCR105 Step 4 : Open a command prompt for that particular text file Step 5 : In the command prompt initially give git init Step 6 : Then type git add 24MCR105.txt to add file into that repo Step 7 : By using git commit -m "Added personal information” command we can commit the text document into the git repository Step 8 : Use git config --global user.email "sowmii99431@gmail.com" command for the email identity Step 9 : Then use git config --global user.name "Sowmiyasree2004" for user identity Step 10 : By using the git status we can check whether we need to commit any files or not . It simply checks the status. Step 11 : By giving git log command we can able to check the logs of the repo Step 12 : Give git branch to see the branch name Step 13 : By giving git branch -M main we can change the branch from master to main Step 14 : Next step is giving the exact path of the repo using git remote add origin https://github.com/Sowmiya-Sree/24MCR105 command

Apr 24, 2025 - 08:59
 0
Create and Push a Personal Info Text File to GitHub Using Git

This hits important keywords like: create, push, text file, personal info, GitHub, and Git — all helpful for search visibility.

Machine Learning Day - 1

Step 1 : Create a folder with the 24MCR105

Image description

Step 2 : Create a text file inside the above folder with personal information

Image description

Step 3 : Create a git repository named as 24MCR105

Image description
Step 4 : Open a command prompt for that particular text file

Image description
Step 5 : In the command prompt initially give git init

Image description
Step 6 : Then type git add 24MCR105.txt to add file into that repo

Image description
Step 7 : By using git commit -m "Added personal information” command we can commit the text document into the git repository

Image description

Step 8 : Use git config --global user.email "sowmii99431@gmail.com" command for the email identity

Image description

Step 9 : Then use git config --global user.name "Sowmiyasree2004" for user identity

Image description

Step 10 : By using the git status we can check whether we need to commit any files or not . It simply checks the status.

Image description

Step 11 : By giving git log command we can able to check the logs of the repo

Image description

Step 12 : Give git branch to see the branch name

Image description

Step 13 : By giving git branch -M main we can change the branch from master to main

Image description

Step 14 : Next step is giving the exact path of the repo using git remote add origin https://github.com/Sowmiya-Sree/24MCR105 command

Image description