-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit-cheatsheet.html
79 lines (65 loc) · 1.64 KB
/
git-cheatsheet.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
78
79
<!DOCTYPE html>
<html lang="es">
<head>
<link rel="stylesheet" href="/theme/css/remark_theme.css" />
<title>Curso Rápido de Python</title>
<meta charset="utf-8" />
</head>
<body id="index" class="home">
<!--<header id="banner" class="body">-->
<!--<h1><a href="/">Curso Rápido de Python <strong></strong></a></h1>-->
<!--</header>-->
<!-- /#banner -->
<nav id="menu"><ul>
</ul></nav><!-- /#menu -->
<textarea id="source">
![]()
---
class: center, middle
# Git Cheat Sheet
## Mauricio Collazos
---
**Clonar un repositorio de internet**
```bash
git clone [url]
```
**Actualizar un repositorio desde internet**
```bash
cd carpeta_del_proyecto
git pull origin master
```
**Inicializar un proyecto**
```bash
cd carpeta_del_proyecto
git init
```
---
**Verificar los cambios locales en un proyecto**
```bash
cd carpeta_del_proyecto
git status
```
**Guardar los cambios en un proyecto**
```bash
cd carpeta_del_proyecto
git add [archivos a guardar]
git commit -m "[mensaje descriptivo de los cambios]"
```
**Subir los cambios a un servidor**
```bash
cd carpeta_del_proyecto
git pull origin master
```
</textarea>
<script src="/theme/js/remark.min.js"></script>
<script>
var slideshow = remark.create();
</script>
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
</footer><!-- /#contentinfo -->
</body>
</html>