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
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
859da062
Commit
859da062
authored
9 years ago
by
Alcides Conte Neto
Browse files
Options
Downloads
Patches
Plain Diff
Adicionado Corrigir Bug
parent
57772ba6
No related branches found
No related tags found
1 merge request
!27
Issue#36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cap08/cap08_er.Rmd
+32
-1
32 additions, 1 deletion
cap08/cap08_er.Rmd
with
32 additions
and
1 deletion
cap08/cap08_er.Rmd
+
32
−
1
View file @
859da062
Exemplos de Rotinas
===================
## Clonar, Modificar e Subir
## Clonar, Modificar e Subir
```{r, engine='bash', echo=TRUE, eval=FALSE}
```{r, engine='bash', echo=TRUE, eval=FALSE}
# Clonar o projeto desta apostila:
# Clonar o projeto desta apostila:
...
@@ -33,9 +38,25 @@ git remote add remoto git@gitlab.c3sl.ufpr.br:pet-estatistica/apostila-git.git
...
@@ -33,9 +38,25 @@ git remote add remoto git@gitlab.c3sl.ufpr.br:pet-estatistica/apostila-git.git
```
```
## Deletar Ramos
## Resolver um bug
```{r, engine='bash', eval=FALSE, echo=TRUE}
git branch bugfix
git checkout bugfix
# Modifica o código de acordo com o necessário.
git commit -a -m "Bug corrigido"
git checkout master
git merge bugfix
git branch -d bugfix
```
```{r, engine='bash', echo=TRUE, eval=FALSE}
```{r, engine='bash', echo=TRUE, eval=FALSE}
# Listar ramos:
git branch
# Deletar ramo local:
# Deletar ramo local:
git branch -d "nome_ramo"
git branch -d "nome_ramo"
# Deletar ramo remoto:
# Deletar ramo remoto:
...
@@ -56,4 +77,14 @@ git checkout novo_branch
...
@@ -56,4 +77,14 @@ git checkout novo_branch
```
```
## Voltar o projeto para um commit
```{r, engine='bash', echo=TRUE, eval=FALSE}
# Listando commits pelo nome e código de identificação:
git log --pretty=oneline
# Voltando a um commit anterior, em que seu código
#de identificação é: ec3650c8661d75b486a236e3d416ab58db1d596a.
git checkout ec3650c8661d75b486a236e3d416ab58db1d596a
```
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