- GitHub Repository Creation:
- Logged in to GitHub account.
- Created a new repository named "PLPBasicGitAssignment".
- Initialized with a README file.
-
Local Folder Setup:
- Created a new folder named "PLPBasicGitAssignment" on the local machine.
-
Git Initialization:
- Initialized a new Git repository in the local folder.
- Command used:
git init
-
Connecting to GitHub:
- Linked the local repository to the GitHub repository.
- Command used:
git remote add origin <repository-url>
-
Create a File:
- Created a new text file named
hello.txtinside the local folder. - Added the text "Hello, Git!" to
hello.txt.
- Created a new text file named
-
Committing Changes:
- Staged the changes.
git add hello.txt
- Committed the changes.
git commit -m "Add hello.txt with a greeting"
- Staged the changes.
- Pushing to GitHub:
- Pushed the committed changes to the GitHub repository.
git push -u origin main
- Pushed the committed changes to the GitHub repository.
- Verified on GitHub:
- Visited the GitHub repository in a web browser to confirm the visibility of
hello.txtand the commit message.
- Visited the GitHub repository in a web browser to confirm the visibility of