Compare commits
No commits in common. "31ba719765d271bada855e636d0d5ab574022d8d" and "b43ce19761e31b95fc9db5276e5af40c4623ef09" have entirely different histories.
31ba719765
...
b43ce19761
12
docs/git.md
12
docs/git.md
|
@ -1,12 +0,0 @@
|
|||
# git
|
||||
|
||||
- Iniciar um repo: `git init`
|
||||
- Verificar o histórico: `git log`
|
||||
- Observe se aparece `:` no final. Use as setas direcionais (↑ e ↓) para navegar ou pressione a letra `Q` para sair do `log`;
|
||||
|
||||
- Verificar o estado: `git status`
|
||||
- Adicionar arquivo para rastrear:
|
||||
- `git add ARQUIVO`
|
||||
- `git add .`
|
||||
- Registrar arquivo adicionado: `git commit -m "MENSAGEM"`
|
||||
- Listar repositórios remotos: `git remote -v`
|
|
@ -1,20 +0,0 @@
|
|||
# Início
|
||||
|
||||
Anotações de Jurandy Soares.
|
||||
|
||||
Meu estragão: <https://estragrao.com/jurandysoares>
|
||||
|
||||
Meu GitHub: <https://github.com/jurandysoares>
|
||||
|
||||
```html
|
||||
<p>Acesse o
|
||||
<a href="https://suap.ifrn.edu.br">SUAP do IFRN</a>.
|
||||
</p>
|
||||
```
|
||||
|
||||
## Programação em Python
|
||||
|
||||
```python
|
||||
import turtle
|
||||
turtle.done()
|
||||
```
|
|
@ -1,17 +0,0 @@
|
|||
# Linux
|
||||
|
||||
## Comandos básicos
|
||||
|
||||
- Criar diretório: `mkdir DIR`
|
||||
- Criar arquivo:
|
||||
- `touch ARQ`
|
||||
- `touch DIR/ARQ`
|
||||
|
||||
- Diretório atual: `pwd`
|
||||
- Data e hora:
|
||||
- `date`
|
||||
- `date +%F`
|
||||
- Histórico de comandos:
|
||||
- `history`
|
||||
- `history > hist/hist-$(date +%F).md`
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
1 ls
|
||||
2 head info1m2024.csv
|
||||
3 tail +2 info1m2024.csv
|
||||
4 tail +2 info1m2024.csv | cut -d, -f2
|
||||
5 matriculas=($(tail +2 info1m2024.csv | cut -d, -f2))
|
||||
6 echo "${matriculas}"
|
||||
7 echo "${matriculas[@]}"
|
||||
8 for mat in "${matriculas[@]}"; do echo $mat; done
|
||||
9 for mat in "${matriculas[@]}"; do echo $mat,; done
|
||||
10 ls
|
||||
11 mkdir desenhos
|
||||
12 head info1m2024.csv
|
||||
13 cd desenhos/
|
||||
14 for mat in "${matriculas[@]}"; do mkdir $mat; touch ${mat}/desenho.py; done
|
||||
15 tail +2 ../info1m2024.csv
|
||||
16 tail +2 ../info1m2024.csv | cut -d, -f23
|
||||
17 tail +2 ../info1m2024.csv | cut -d, -f2,3
|
||||
18 tail +2 ../info1m2024.csv | awk -F, '{print $2$1}'
|
||||
19 tail +2 ../info1m2024.csv | awk -F, '{print $2,$1}'
|
||||
20 tail +2 ../info1m2024.csv | awk -F, '{print $3,$2}'
|
||||
21 tail +2 ../info1m2024.csv | awk -F, '{print "- ["$3"]("$2")"}'
|
||||
22 tail +2 ../info1m2024.csv | awk -F, '{print "- ["$3"]("$2")/desenho.py"}'
|
||||
23 tail +2 ../info1m2024.csv | awk -F, '{print "- ["$3"]("$2"/desenho.py)"}'
|
||||
24 tail +2 ../info1m2024.csv | awk -F, '{print "- ["$3"]("$2"/desenho.py)"}' > README.md
|
||||
25 git add .
|
||||
26 git commit -m 'Atividade de desenhos'
|
||||
27 git push
|
||||
28 exit
|
||||
29 ssh jurandy@oulu
|
||||
30 exit
|
||||
31 exit
|
||||
32 git status
|
||||
33 git push
|
||||
34 git pull
|
||||
35 git merge
|
||||
36 git status
|
||||
37 git add .
|
||||
38 git merge
|
||||
39 git add .
|
||||
40 git push
|
||||
41 git pull
|
||||
42 exit
|
||||
43 ssh jurandy@oulu
|
||||
44 ssh oulu
|
||||
45 ssh jurandy@oulu
|
||||
46 git init
|
||||
47 git log
|
||||
48 git branch -m main
|
||||
49 git add .
|
||||
50 git status
|
||||
51 touch index.html
|
||||
52 git status
|
||||
53 git add index.html
|
||||
54 git status
|
||||
55 git log
|
||||
56 git status
|
||||
57 git commit -m "Primeira importação"
|
||||
58 git status
|
||||
59 git log
|
||||
60 git config --global user.name "Jurandy Soares"
|
||||
61 git config --global user.email "jurandy.soares@escolar.ifrn.edu.br"
|
||||
62 git config --global --list
|
||||
63 git remote -v
|
||||
64 git remote -v
|
||||
65 git remote add gitea https://gitea.mange.ifrn.edu.br/1577142/demo.git
|
||||
66 git remote -v
|
||||
67 git remote add github https://github.com/jurandysoares/demo.git
|
||||
68 git remote -v
|
||||
69 git remote -v | nl
|
||||
70 git remote -v | nl
|
||||
71 git push github main
|
||||
72 git push gitea main
|
||||
73 git push gitea main
|
||||
74 git pull github main
|
||||
75 git push gitea main
|
||||
76 exit
|
||||
77 ssh oulu
|
||||
78 ping oulu
|
||||
79 ping oulu
|
||||
80 ping oulu
|
||||
81 ssh oulu
|
||||
82 exti
|
||||
83 git init
|
||||
84 git log
|
||||
85 hg
|
||||
86 exit
|
||||
87 mkdir docs
|
||||
88 find
|
||||
89 find docs
|
||||
90 touch docs/index.md
|
||||
91 find docs
|
||||
92 touch docs/git.md
|
||||
93 code docs/git.md
|
||||
94 git log
|
||||
95 git status
|
||||
96 git status
|
||||
97 find docs
|
||||
98 git add docs/index.md
|
||||
99 git status
|
||||
100 git commit -m 'Criação de arquivo índice'
|
||||
101 git log
|
||||
102 git remote -v
|
||||
103 history
|
||||
104 mkdir hist
|
||||
105 date
|
||||
106 date +%F
|
||||
107 history
|
||||
108 history > hist/hist-$(date +%F).md
|
Loading…
Reference in New Issue