Task 1: Repository Setup
- GitHub Repository Creation:
-
Log in to your GitHub account.
-
Create a new repository on GitHub (let's call it "PLPBasicGitAssignment").
-
Initialize it with a README file.
Task 2: Local Setup
- Local Folder Setup:
-
Create a new folder on your local machine (e.g., "PLPBasicGitAssignment").
-
Open a terminal or command prompt and navigate to the created folder.
- Git Initialization:
- Initialize a new Git repository in your local folder.
- Connecting to GitHub:
- Link your local repository to the GitHub repository you created in Task 1.
git remote add origin https://github.com/20225587/PLP-BasicGitAssignment.git
Replace <repository-url>
with the actual URL of your GitHub repository.
Task 3: Making Changes
- Create a File:
-
Inside your local folder, create a new text file (e.g.,
hello.txt
). -
Add a simple text message (e.g., "Hello, Git!").
- Committing Changes:
- Stage the changes.
git add musa.txt
- Commit the changes.
git commit -m "Add hello with a greeting"
Task 4: Pushing to GitHub
- Pushing to GitHub:
- Push the committed changes to your GitHub repository.
git push -u origin main