Compare commits
2 Commits
f2894d3e12
...
9029c7a8c1
Author | SHA1 | Date |
---|---|---|
|
9029c7a8c1 | |
|
848f8a63f5 |
|
@ -0,0 +1,13 @@
|
||||||
|
# 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`
|
||||||
|
- Mostrar histórico: `history`
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Ínicio
|
||||||
|
|
||||||
|
Anotações de Carlos Alexandre
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p>Acesse o <a href="https://suap.ifrn.edu.br">SUAP do IFRN</a><p>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Programação em Python
|
||||||
|
|
||||||
|
```python
|
||||||
|
import turtle
|
||||||
|
trutle.done()
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Linux
|
||||||
|
|
||||||
|
## Comandos básicos
|
||||||
|
|
||||||
|
- Criar diretório: `mkdir DIR`
|
||||||
|
- Criar arquivo:
|
||||||
|
- `touch ARQ`
|
||||||
|
- `touch DIR/ARQ`
|
||||||
|
|
||||||
|
- Diretório atual: `pwd`
|
||||||
|
- Histórico de comandos:
|
||||||
|
- `history`
|
||||||
|
- `history > hist/hist-$(date =%F).md`
|
|
@ -0,0 +1,49 @@
|
||||||
|
1 sh -c "$(curl -s http://oulu/acesso/ssh/conta-ssh.txt)"
|
||||||
|
2 sh -c "$(curl -s http://oulu/acesso/ssh/conta-ssh.txt)"
|
||||||
|
3 sh -c "$(curl -s http://oulu/acesso/ssh/conta-ssh.txt)"
|
||||||
|
4 git init
|
||||||
|
5 git log
|
||||||
|
6 git branch -m main
|
||||||
|
7 git add .
|
||||||
|
8 git status
|
||||||
|
9 touch index.html
|
||||||
|
10 git status
|
||||||
|
11 git add index.html
|
||||||
|
12 git status
|
||||||
|
13 git log
|
||||||
|
14 git status
|
||||||
|
15 git commit -m "Primeira importação"
|
||||||
|
16 git log
|
||||||
|
17 git log
|
||||||
|
18 git config --global user.name "Carlos Alexandre"
|
||||||
|
19 git config --global user.email carlos.alexandre1@escolar.ifrn.edu.br
|
||||||
|
20 git config -- global --list
|
||||||
|
21 git config --global --list
|
||||||
|
22 git remote -v
|
||||||
|
23 git remote add gitea https://gitea.mange.ifrn.edu.br/20241144010030/demo.git
|
||||||
|
24 git push gitea main
|
||||||
|
25 git remote -v
|
||||||
|
26 git remote add github main https://github.com/CarlosAlexandre08/demo.git
|
||||||
|
27 git push github main
|
||||||
|
28 git remote -v
|
||||||
|
29 mkdir docs
|
||||||
|
30 find
|
||||||
|
31 find docs
|
||||||
|
32 touch docs/index.md
|
||||||
|
33 find docs
|
||||||
|
34 touch docs/git.md
|
||||||
|
35 find docs
|
||||||
|
36 code docs/git.md
|
||||||
|
37 git log
|
||||||
|
38 git status
|
||||||
|
39 git status
|
||||||
|
40 git add docs-index.md
|
||||||
|
41 git add docs/index.md
|
||||||
|
42 git status
|
||||||
|
43 git commit -m "Criação de arquivo índice"
|
||||||
|
44 git log
|
||||||
|
45 git remote -v
|
||||||
|
46 history
|
||||||
|
47 mkdir hist
|
||||||
|
48 touch docs/linux.md
|
||||||
|
49 history > hist/hist-$(date +%F).md
|
Loading…
Reference in New Issue