Anotações de 14/11/2024
This commit is contained in:
parent
d654fcd4f6
commit
d4ff39294e
|
@ -0,0 +1,10 @@
|
|||
# git
|
||||
|
||||
- Iniciar um repositório: `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 o arquivo para rastrear: `git add <nome-do-arquivo>`
|
||||
- Registrar arquivo adicionado: `git commit -m "mensagem"`
|
||||
- Listar repositórios remotos: `git remote -v`
|
|
@ -0,0 +1,18 @@
|
|||
# Início
|
||||
|
||||
Esse é o início
|
||||
|
||||
Meu forchão: <https://forchao.com/marcomarco>
|
||||
|
||||
Meu GitHub: <https://github.com/marcos-firmino>
|
||||
|
||||
|
||||
<p>Acesse o <a href="https://suap.ifrn.edu.br">SUAP</a>.</p>
|
||||
|
||||
|
||||
## Programação em Python
|
||||
|
||||
```python
|
||||
import turtle
|
||||
turtle.done()
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# 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`
|
|
@ -0,0 +1,60 @@
|
|||
1 git init
|
||||
2 git log
|
||||
3 git branch -m main
|
||||
4 git add .
|
||||
5 git status
|
||||
6 On branch main
|
||||
7 touch index.html
|
||||
8 git log
|
||||
9 git add .
|
||||
10 touch index.html
|
||||
11 git add index.html
|
||||
12 git status
|
||||
13 git log
|
||||
14 git commit -m "Cristo Vive"
|
||||
15 git status
|
||||
16 git config --global user.name "Marcos Lopes"
|
||||
17 git config --global user.email marcos.firmino@escolar.ifrn.edu.br
|
||||
18 git commit --amend --reset-author
|
||||
19 git init
|
||||
20 git branch -m main
|
||||
21 git add .
|
||||
22 git status
|
||||
23 touch index.html
|
||||
24 git add index.html
|
||||
25 git commit -m "Primeira importação"
|
||||
26 git config --global user.name "Marcos Lopes"
|
||||
27 git config --global user.email "marcos.firmino@escolar.ifrn.edu.br"
|
||||
28 git --config --global --list
|
||||
29 git config --global --list
|
||||
30 git remote -v
|
||||
31 git push github main
|
||||
32 git remote add github github.com/marcos-firmino
|
||||
33 git push github demo
|
||||
34 git remote add github github.com/marcos-firmino?tab=repositories
|
||||
35 git remote add github https://github.com/marcos-firmino/demo.git
|
||||
36 git push github demo
|
||||
37 git remote add github https://github.com/marcos-firmino/demo.git
|
||||
38 git remote add origin https://github.com/marcos-firmino/demo.git
|
||||
39 git push origin main
|
||||
40 git remote -v
|
||||
41 mkdir docs
|
||||
42 find
|
||||
43 find docs
|
||||
44 touch docs.index.md
|
||||
45 touch docs/index.md
|
||||
46 touch docs/git.md
|
||||
47 code docs/git.md
|
||||
48 git log[
|
||||
49 git log
|
||||
50 git status
|
||||
51 git status
|
||||
52 find docs
|
||||
53 git add docs/index.md
|
||||
54 git status
|
||||
55 git remote -v
|
||||
56 hitory
|
||||
57 history
|
||||
58 mkdir hist
|
||||
59 touch docs/linux.md
|
||||
60 history > hist/hist-$(date +%F).md
|
Loading…
Reference in New Issue