Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Pushing Changes | Introduction to GitHub
GitHub Fundamentals
course content

Conteúdo do Curso

GitHub Fundamentals

GitHub Fundamentals

1. Introduction to GitHub
2. Basic Interaction with Remotes
3. More Advanced Workflows

book
Pushing Changes

Push Attempt

Previously, the README file was modified and the changes were committed locally. Let's send these changes to your remote repository. In a basic scenario like this, a simple git push command is sufficient:

Note
Note

The git push command uploads local repository content to a remote repository, synchronizing changes made locally with the remote branch.

Oops, something went wrong and authentication failed. Let's try again:

As you can see, even after entering the username and password for the GitHub account, authentication still failed. The error message indicates that GitHub has discontinued password authentication for operations on repositories.

Personal Access Token

Instead of passwords, GitHub now requires the use of more secure methods like personal access tokens.

Note
Study More

GitHub switched to personal access tokens to enhance security and improve access control. Tokens have an expiration date and a specific set of privileges, unlike regular passwords, which reduces the risk of credential compromise and allows for more precise permission management.

Let's now create one by following the instructions in the video below:

Once you've copied and written down your token, let's try pushing the changes again. Now, you should enter the token instead of your password.

Congratulations on your first successful push to the remote repository!

question mark

What is one of the main advantages of using GitHub personal access tokens over passwords?

Select the correct answer

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6

Pergunte à IA

expand
ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

course content

Conteúdo do Curso

GitHub Fundamentals

GitHub Fundamentals

1. Introduction to GitHub
2. Basic Interaction with Remotes
3. More Advanced Workflows

book
Pushing Changes

Push Attempt

Previously, the README file was modified and the changes were committed locally. Let's send these changes to your remote repository. In a basic scenario like this, a simple git push command is sufficient:

Note
Note

The git push command uploads local repository content to a remote repository, synchronizing changes made locally with the remote branch.

Oops, something went wrong and authentication failed. Let's try again:

As you can see, even after entering the username and password for the GitHub account, authentication still failed. The error message indicates that GitHub has discontinued password authentication for operations on repositories.

Personal Access Token

Instead of passwords, GitHub now requires the use of more secure methods like personal access tokens.

Note
Study More

GitHub switched to personal access tokens to enhance security and improve access control. Tokens have an expiration date and a specific set of privileges, unlike regular passwords, which reduces the risk of credential compromise and allows for more precise permission management.

Let's now create one by following the instructions in the video below:

Once you've copied and written down your token, let's try pushing the changes again. Now, you should enter the token instead of your password.

Congratulations on your first successful push to the remote repository!

question mark

What is one of the main advantages of using GitHub personal access tokens over passwords?

Select the correct answer

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
Sentimos muito que algo saiu errado. O que aconteceu?
some-alt