Basic introduction to the Git and GitHub workflow, emphasizing repository creation, local setup, making changes, committing, and pushing to GitHub.
-
Initialize a new Git repository
git init
-
Add a remote repository named 'origin' with the specified URL
git remote add origin https://github.com/Karume-lab/PLPBasicGitAssignment.git
-
Create a README file with the given content
echo "# GIT & GITHUB BASICS" > README.md
-
Stage and commit the README file
git add README.md git commit -m "add readme"
-
Create a text file named 'me.txt' with a personal introduction
echo "My name is Karume and this is \"Introduction to GIT & GITHUB!\"" > me.txt
-
Stage and commit the 'me.txt' file
git add me.txt git commit -m "me file"
-
Push the committed changes to the 'main' branch of the remote repository
git push -u origin main