Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Task 1: Repository Setup

  1. 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

  1. 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.
  2. Git Initialization:

    • Initialize a new Git repository in your local folder.
  3. Connecting to GitHub:

    • Link your local repository to the GitHub repository you created in Task 1.
    git remote add origin <repository-url>

    Replace <repository-url> with the actual URL of your GitHub repository.

Task 3: Making Changes

  1. 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!").
  2. Committing Changes:

    • Stage the changes.
    git add hello.txt
    • Commit the changes.
    git commit -m "Add hello.txt with a greeting"

Task 4: Pushing to GitHub

  1. Pushing to GitHub:

    • Push the committed changes to your GitHub repository.
    git push -u origin master

Task 5: Verification

  1. Verify on GitHub:
    • Visit your GitHub repository in a web browser and confirm that the hello.txt file and commit message are visible.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors