GIT & GITHUB BASICS

Basic introduction to the Git and GitHub workflow, emphasizing repository creation, local setup, making changes, committing, and pushing to GitHub.

  1. Initialize a new Git repository

    git init
  2. Add a remote repository named 'origin' with the specified URL

    git remote add origin https://github.com/Karume-lab/PLPBasicGitAssignment.git
  3. Create a README file with the given content

    echo "# GIT & GITHUB BASICS" > README.md
  4. Stage and commit the README file

    git add README.md
    git commit -m "add readme"
  5. 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
  6. Stage and commit the 'me.txt' file

    git add me.txt
    git commit -m "me file"
  7. Push the committed changes to the 'main' branch of the remote repository

    git push -u origin main