This repository demonstrates basic Git and GitHub usage.
- Create a GitHub Repository:
- Log in to GitHub.
- Create a new repository named
PLPBasicGitAssignment. - Initialize with a README file.
-
Local Folder Setup:
- Create a local folder named
PLPBasicGitAssignment. - Navigate to the folder in the terminal:
cd path/to/PLPBasicGitAssignment
- Create a local folder named
-
Git Initialization:
- Initialize a new Git repository:
git init
- Initialize a new Git repository:
-
Connecting to GitHub:
- Link the local repository to GitHub:
git remote add origin <https://github.com/fredjuma007/PLPBasicGitAssignment.git>
- Link the local repository to GitHub:
-
Create a File:
- Create
new-text_file.txtwith the message "Hello, Git!".
- Create
-
Committing Changes:
- Stage the file:
git add hello.txt
- Commit the changes:
git commit -m "text file with a quote"
- Stage the file:
- Push Changes:
- Push to GitHub:
git push -u origin main
- Push to GitHub:
- Verify on GitHub:
- Check the repository on GitHub to ensure the file and commit are present.