Skip to content

rhuan-pk/git-basics

Repository files navigation

Instituição: UMFG EDUCACIONAL LTDA S/S

Curso: Análise e Desenvolvimento de Sistemas

Período: 5º

Matéria: Tópicos especiais em computação aplicada

Docente: Rafael Albuquerque Rasso


Aluno: Rhuan Patriky de Sousa Ferrer

R.A.: 1028


Atividade - Git

Exercício 1:

git init ./git-basics/

Exercício 2:

touch ./file.txt

Exercício 3:

git add ./

Exercício 4:

git commit -m 'initial commit'

Exercício 5:

touch ./file{1..3}.txt

Exercício 6:

git stash push -um 'Stash 1' file1.txt; git stash push -um 'Stash 2' file2.txt; git stash push -um 'Stash 3' file3.txt

Exercício 7:

git stash pop stash@'{2}'; git add ./; git commit -m 'Comitando o stash 1'

Exercício 8:

git stash pop stash@'{1}'; git stash pop stash@'{0}'; git add ./; git commit -m 'Comitando os stashes restantes'

Exercício 9:

# nothing to report.

Exercício 10:

# nothing to report.

Exercício 11:

git remote add origin https://github.com/rhuan-pk/git-basics.git

Exercício 12:

git push -u origin main

Exercício 13:

# nothing to report.

Exercício 14, 15:

git switch -c my-primary-branch-1028

Exercício 16:

touch ./new-file.txt; git add ./; git commit -m 'new file'; git push origin `git branch --show-current`

Exercício 17:

# nothing to report.

Exercício 18:

git switch main

Exercício 19:

git pull origin main

Exercício 20:

git switch -c minha-segunda-branch-1028

Exercício 21:

touch ./other-file.txt; git add ./; git commit -m 'que desejar'

Exercício 22:

git switch main; git merge minha-segunda-branch-1028

Exercício 23:

git push origin main

Exercício 24:

git switch -c minha-terceira-branch-1028

Exercício 25:

touch terceiro-arquivo.txt; git add ./; git commit -m 'Esta mensagem vai no squash'

Exercício 26:

touch quarto-arquivo.txt; git add ./; git commit -m 'Esta mensagem não vai no squash, mas o arquivo vai'

Exercício 27:

git switch main; git merge --squash minha-terceira-branch-1028

Exercício 28:

git commit -m 'Local squash merge #1 from minha-terceira-branch-1028'; git push origin main

Exercício 29:

git switch my-primary-branch-1028; git pull origin main

Exercício 30:

git push origin `git branch --show-current`

Exercício 31:

rm -rf ./git-basics/

Exercício 32:

git clone https://github.com/rhuan-pk/git-basics.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors