- GitHub Repository Creation:
- Created a new repository on GitHub called "PLPBasicGitAssignment" and Initialize it with a README file.
- Local Folder Setup: -CreateD a new folder on local machine named "PLPBasicGitAssignment".
- Git Initialization:
- Initializing a new Git repository in local folder using command
git init.
- Connecting to GitHub:
- Link a local repository to the GitHub repository using command
git remote add origin https://github.com/Deusleon/PLPBasicGitAssignment.git
- Create a File:
- Inside a local folder, i have created a new text file named
hello.txtand add a simple text message "Hello, Git!".
- Committing Changes:
- Then i have stage the changes using command
git add hello.txtthengit commit -m "Add hello.txt with a greeting".
- Pushing to GitHub:
- After that i Push the committed changes to the GitHub repository using command
git push -u origin master.
- Verifying on GitHub:
- Then visited GitHub repository in a web browser and confirm that the
hello.txtfile and commit message are visible.