Basic Git Workflow

Learn the absolute minimum Git workflow:

change something → save it → send it to GitHub


📁 Task Instructions

1. Create a local folder

  • On your Desktop, create a new folder named: task3-yourName

2. Create a file

  • Inside the folder, create a file named README.md

  • Add the following content:

My name is: <your Discord username>

3. Create a GitHub repository

  • Go to the Team organization

  • Create a new private repository

  • Use the same name as your folder:

4. Push your first commit

  • Initialize Git locally

  • Add the file

  • Commit your changes

  • Push the project to the GitHub repository

circle-info

💡 Only committed changes are pushed to GitHub.

5. Make a second change

  • After the first push:

    • Create a new file named index.js

    • The file can be empty

  • Add, commit, and push this change again

✅ Expected result

  • Repo exists on GitHub

  • Both files are visible:

    • README.md

    • index.js

  • Commit history shows 2 commit

🧠 What you will learn

  • How to initialize a Git repository

  • The basic Git workflow:

    • add → commit → push

  • The difference between local files and GitHub (remote)

githubOpen task on GitHub →code-branchStart the Git task ✓

circle-exclamation
Screen shot from VsCode display what mean local - ITC

Last updated

Was this helpful?