Git Exercises

Ques.6- Modify the `README.md` file and add more text

Ans- To modify the `README.md` file and add more text using Git, follow these steps:


1. Open your terminal or command prompt and navigate to the root directory of your Git repository.

2. Check the status of your repository by running the command `git status`. This will show you the modified files and any untracked files.

3. Open the `README.md` file in a text editor and make the desired changes, adding more text to the file.

4. Save the changes in the text editor.

5. Run the command `git status` again to see that the `README.md` file is now listed as modified.

6. Add the modified `README.md` file to the staging area using the command `git add README.md`.

7. Run the command `git status` once more to verify that the `README.md` file is in the staging area (it should appear in green).

8. Commit the changes with a descriptive message using the command `git commit -m "Add more text to README.md"`. Replace "Add more text to README.md" with your own descriptive message.

9. After running the commit command, Git will display the commit hash and information about the commit.


Remember to push your changes to the remote repository using `git push` to make the changes available to others.



About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





 PreviousNext