Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Uploading Changes to GitHub | Getting Social: Introduction to GitHub
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Git and GitHub for Absolute Dummies

bookUploading Changes to GitHub

When you finish making changes to your project, you want to share those updates with others. In Git, the command that sends your latest work to GitHub is called a push. Think of it as uploading new photos to your online album—once you push, everyone can see your most recent changes.

# Push your latest commits to GitHub
git push

Here’s what happens when you push your changes:

  • Git takes all your new commits since the last push;
  • It sends them to your project’s repository on GitHub;
  • Your online project is now up to date, so you and others see the latest version.

Keeping your online album updated is important. If you only save changes on your computer, nobody else can see them. By pushing, you make sure your work is safely stored and visible on GitHub.

# Make a new commit and push it to GitHub
git add hello.txt
git commit -m "Add a friendly greeting"
git push

1. What does git push do?

2. Why push your changes?

question mark

What does git push do?

Select the correct answer

question mark

Why push your changes?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Can you explain what happens if I forget to push my changes?

What should I do if git push gives me an error?

How often should I push my changes to GitHub?

bookUploading Changes to GitHub

Swipe um das Menü anzuzeigen

When you finish making changes to your project, you want to share those updates with others. In Git, the command that sends your latest work to GitHub is called a push. Think of it as uploading new photos to your online album—once you push, everyone can see your most recent changes.

# Push your latest commits to GitHub
git push

Here’s what happens when you push your changes:

  • Git takes all your new commits since the last push;
  • It sends them to your project’s repository on GitHub;
  • Your online project is now up to date, so you and others see the latest version.

Keeping your online album updated is important. If you only save changes on your computer, nobody else can see them. By pushing, you make sure your work is safely stored and visible on GitHub.

# Make a new commit and push it to GitHub
git add hello.txt
git commit -m "Add a friendly greeting"
git push

1. What does git push do?

2. Why push your changes?

question mark

What does git push do?

Select the correct answer

question mark

Why push your changes?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
some-alt