1
resposta

Consolidando conhecimentos

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git checkout -b titulo
Switched to a new branch 'titulo'

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git add .

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git commit -m "Change item in course list"
On branch titulo
nothing to commit, working tree clean

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git add .

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git commit -m "Change item in course list"
[titulo 049c6f4] Change item in course list
 1 file changed, 1 insertion(+), 1 deletion(-)

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git checkout main
Switched to branch 'main'

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git add .

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git commit -m "Change item in course list on main"
[main 73c610f] Change item in course list on main
 1 file changed, 1 insertion(+), 1 deletion(-)

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git rebase titulo
Successfully rebased and updated refs/heads/main.

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git log --graph
* commit 049c6f402ce21fcf898bb338ab5ee631d0e01f4a (HEAD -> main, titulo)
| Author: 
| Date:   Sun Oct 3 22:54:48 2021 -0300
|
|     Change item in course list
|
* commit ae57d5b22353c1553f8339e5ca6869906892e66e (origin/main, local/main)
| Author: 
| Date:   Fri Oct 1 00:06:36 2021 -0300
|
|     Adds a page title
|
* commit 5bed6101cb7964feb78c6ad6460389d2cf1567fa
| Author: 
| Date:   Thu Sep 30 23:21:35 2021 -0300
|
|     Adds a new course to the list
|
* commit b712392304335d78b314caad94ad760a9142cc56
| Author:
| Date:   Thu Sep 30 22:52:36 2021 -0300
|
|     Change page language
|
* commit 5678b30c0fc45b4904cdffff8e69a9859fa7d061
  Author:
  Date:   Thu Sep 30 22:49:13 2021 -0300

      Create index.html file

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (main)
$ git checkout titulo
Switched to branch 'titulo'

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git log
commit 049c6f402ce21fcf898bb338ab5ee631d0e01f4a (HEAD -> titulo, main)
Author: 
Date:   Sun Oct 3 22:54:48 2021 -0300

    Change item in course list

commit ae57d5b22353c1553f8339e5ca6869906892e66e (origin/main, local/main)
Author:
Date:   Fri Oct 1 00:06:36 2021 -0300

    Adds a page title

commit 5bed6101cb7964feb78c6ad6460389d2cf1567fa
Author:
Date:   Thu Sep 30 23:21:35 2021 -0300

    Adds a new course to the list

commit b712392304335d78b314caad94ad760a9142cc56
Author: 
Date:   Thu Sep 30 22:52:36 2021 -0300

    Change page language

commit 5678b30c0fc45b4904cdffff8e69a9859fa7d061
Author:
Date:   Thu Sep 30 22:49:13 2021 -0300

    Create index.html file

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git add .

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git commit -m "Change docker item"
[titulo 3376b83] Change docker item
 1 file changed, 1 insertion(+), 1 deletion(-)

regis@LAPTOP-5HIPAI1M MINGW64 ~/Meu Drive/estudos/alura/git-github/regis (titulo)
$ git checkout main
Switched to branch 'main'

continua no GIST https://gist.github.com/regisncoelho/b330f82371f4b06c37273ffc05064ab5

1 resposta

Olá Régis, tudo bem?

Parabéns pelo empenho! Ficamos muito contentes por você ter consolidado seus conhecimentos com as atividades do curso.

E muito obrigada por ter compartilhado aqui conosco, assim você ajuda outros alunos também.

Qualquer coisa, estamos à disposição!

Abraços e bons estudos 😄