Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apostila-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pet-estatistica
apostila-git
Commits
6a5f4898
Commit
6a5f4898
authored
9 years ago
by
Alcides Conte Neto
Browse files
Options
Downloads
Patches
Plain Diff
Adicionado rebase e stash
parent
0ca150db
Branches
Branches containing commit
No related tags found
1 merge request
!14
Issue#11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cap08/cap08_dt.Rmd
+30
-1
30 additions, 1 deletion
cap08/cap08_dt.Rmd
with
30 additions
and
1 deletion
cap08/cap08_dt.Rmd
+
30
−
1
View file @
6a5f4898
...
@@ -242,9 +242,22 @@ por exemplo, a ligação existente entre o arquivo e seus commits.
...
@@ -242,9 +242,22 @@ por exemplo, a ligação existente entre o arquivo e seus commits.
git mv teste.tex arquivo1.tex
git mv teste.tex arquivo1.tex
```
```
## Stash
## Stash
É uma maneira de não precisar fazer um `commit` para mudar de `branch`.
Executando este comando, os arquivos modificados ficam salvos em uma
pilha de modificações inacabadas, sendo possível transitar entre
`branchs` e voltar ao trabalho inacabado quando necessário.
**Exemplo:**
```{r, engine='bash', echo=TRUE, eval=FALSE}
# Fazendo o stash:
git stash
# Listando os stash criados:
git stash list
```
## Reset
## Reset
## Fetch
## Fetch
...
@@ -253,6 +266,22 @@ git mv teste.tex arquivo1.tex
...
@@ -253,6 +266,22 @@ git mv teste.tex arquivo1.tex
## Rebase
## Rebase
O `rebase` é usado para modificar `commits` antigos. Ele refaz a arvore
de `commits`, sendo assim, não é uma boa ideia fazer um `push` da
alteração, pois modificara a arvore do servidor, afetando todos os
desenvolvedores.
A idéia geral é que ele pega os commits de um ramo e "muda de base",
passando-os para novos commits do ramo atual, formando uma arvore com
fluxo de trabalho linear.
**Exemplo:**
```{r, engine='bash', echo=TRUE, eval=FALSE}
# Fazer o rebase do branch teste para o atual:
git rebase teste
```
## Bisect
## Bisect
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment