Services Work Learn About Contact
0/8
Lesson 7 of 8

GitHub: push & clone

git push uploads your local commits to GitHub. git clone downloads a repository from GitHub to your computer. You need to connect your local repository to a remote URL first.

GIT
# Connect local repo to GitHub
git remote add origin https://github.com/username/repo.git

# Upload commits to GitHub
git push -u origin main

# Download a repository
git clone https://github.com/username/repo.git

# Download latest changes from GitHub
git pull
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed Git & GitHub!

You finished all 8 lessons and quizzes. You now know the basics of Git & GitHub.