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
Exercício 1:
git init ./git-basics/Exercício 2:
touch ./file.txtExercício 3:
git add ./Exercício 4:
git commit -m 'initial commit'Exercício 5:
touch ./file{1..3}.txtExercí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.txtExercí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.gitExercício 12:
git push -u origin mainExercício 13:
# nothing to report.Exercício 14, 15:
git switch -c my-primary-branch-1028Exercí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 mainExercício 19:
git pull origin mainExercício 20:
git switch -c minha-segunda-branch-1028Exercício 21:
touch ./other-file.txt; git add ./; git commit -m 'que desejar'Exercício 22:
git switch main; git merge minha-segunda-branch-1028Exercício 23:
git push origin mainExercício 24:
git switch -c minha-terceira-branch-1028Exercí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-1028Exercício 28:
git commit -m 'Local squash merge #1 from minha-terceira-branch-1028'; git push origin mainExercício 29:
git switch my-primary-branch-1028; git pull origin mainExercí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