-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp0007_renomear_mover.html
77 lines (77 loc) · 3.24 KB
/
p0007_renomear_mover.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="estilo.css">
<link rel="icon" href="img/git_icon.png">
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" rel="stylesheet">
<meta name="keywords" content="danielle8farias, git, renomear, move, mv, linux, tutorial">
<title>git mv</title>
</head>
<body>
<div class="corpo-central">
<div class="titulo">
<h1>>_ git mv: Renomeando ou movendo arquivos no Git</h1>
</div>
<article class="caixa-texto">
<p>
Para renomear um arquivo do repositório, basta digitar o comando:
</p>
<code class="caixa-codigo">
$ git mv <nome_antigo> <nome_novo>
</code>
<ul class="observacao">
<li>
<strong>$</strong> indica que você deve usar o <strong>usuário comum</strong> para fazer essa operação.
</li>
<li>
substitua o <nome_antigo> e <nome_novo> pelos nomes do arquivo e o novo nome que deseja dar a ele, sem os sinais <strong>< ></strong>
</li>
</ul>
<p>
Esse comando também é usado para mover arquivos do repositório.
</p>
<p>
Exemplo:
</p>
<code class="caixa-codigo">
$ git mv <arquivo> <diretorio/>
</code>
<p>
Exemplo:
</p>
<p>
Mudando o nome do arquivo <strong>nintendo64.html</strong> para <strong>n64.html</strong>.
</p>
<img class="exemplo" src="img/p0007-0.png" alt="mudando o nome do arquivo nintendo64.html">
<p>
Movendo o arquivo <strong>estilo.css</strong> para o <strong>diretório css</strong>.
</p>
<img class="exemplo" src="img/p0007-1.png" alt="movendo o arquivo estilo.css">
</article>
<nav>
<div class="nav-esquerda">
<a href="p0006_amend.html">
< anterior
</a>
</div>
<div>
<a href="index.html">
voltar ao índice
</a>
</div>
<div class="nav-direita">
<a href="p0008_diff.html">
próximo >
</a>
</div>
</nav>
<footer>
by danielle8farias
</footer>
</div>
</body>
</html>