Git Fundamentals

Level up with "Git Fundamentals"

Access all lessons in this tutorial.

No spam, unsubscribe at any time.

This is a free tutorial

In exchange for your email address, you'll get full access to this and other free Epic Web Dev tutorials.

Why? First and foremost, your inbox allows us to directly communicate about the latest Epic Web Dev material. This includes free tutorials, tips, and periodic update about trends, tools, and happenings in Web Development that I'm excited about.

In addition to the piles of free Epic Web Dev content, you'll get the earliest access and best discounts to the paid courses when they launch.

There won't be any spam, and every email you get will have an unsubscribe link.

If this sounds like a fair trade, let's go!

Current section: Commands 17 exercises
lesson

Syncing Local Commits with Remote Repository

git push is how we sync commits from our local repository to our remote repository.

Right now, all of the commits in our git log are already synced, so there's nothing to push. But if we run git status, we see that a new file for git-remote.txt has been added, which we can commit and sync.

Subscribe to unlock this lesson.

Transcript

00:00 Git push is how we sync commits from our local repository to our remote repository. Right now, all of the commits in our Git log are already synced, so there's nothing to push. But if we run Git status, we see that I added a new file for Git remote that we can commit and sync.

00:18 Let's add everything and commit it using the message add remote note. Finally, let's run Git status again, where we'll see a message we haven't seen before. Your branch is head of origin main by one commit. Use Git push to publish your local commits.

00:35 Let's do what it says, Git push. Looks like everything was successful, so we can go to our remote and hit refresh. Here we see our Git remote text note that was added one minute ago.

Full Stack Vol 1
You might also like

Full Stack Vol 1

Kent C. Dodds
Kent C. Dodds

A comprehensive guide to full stack development

166 Interactive Exercises ・ Progress Tracking ・ Completion Certificate
Learn more