Skip to content

Commit

Permalink
Última versión antes de la charla?? :P
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix committed Mar 13, 2012
1 parent c2f662e commit 11f8b4b
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 42 deletions.
Binary file added images/C9logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/github.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/herokulogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/original.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion slides.js
Expand Up @@ -10,7 +10,8 @@
URL: http://code.google.com/p/html5slides/
*/

var PERMANENT_URL_PREFIX = 'http://localhost/~javaguirre/api-js-guluc3m/';
//var PERMANENT_URL_PREFIX = 'http://localhost/~javaguirre/api-js-guluc3m/';
var PERMANENT_URL_PREFIX = 'http://localhost:8000/';

var SLIDE_CLASSES = ['far-past', 'past', 'current', 'next', 'far-next'];

Expand Down
159 changes: 119 additions & 40 deletions template/index.html
Expand Up @@ -47,7 +47,7 @@ <h1>
<br />
<a href="http://twitter.com/mgdelacroix">Miguel de la Cruz</a>
<br/>
13 de Feb de 2012
13 de Mar de 2012
<br/>
</p>
<img src="../images/octobiwan.jpg" style="width: 250px; align: right; position: absolute; left: 500px;"/>
Expand All @@ -56,9 +56,6 @@ <h1>
</div>
</article>

<article>
<img src="../images/baracktocat.jpg" style="width: 650px;" class="centered"/>
</article>
<article>
<h3>Control de versiones</h3>
<p>
Expand All @@ -74,6 +71,10 @@ <h3>Control de versiones</h3>
<p>Una versión nueva es un <strong>commit</strong></p>
</article>

<article>
<img src="../images/baracktocat.jpg" style="width: 650px;" class="centered"/>
</article>

<article>
<h3>Centralizado/distribuido</h3>
<ul>
Expand All @@ -84,6 +85,15 @@ <h3>Centralizado/distribuido</h3>
</ul>
</article>

<article>
<h3>Introducción/Historia</h3>
<ul>
<li>Creado por Linus Torvalds</li>
<li>Control de versiones distribuido</li>
<li><em>Estándar de facto</em> en el mundo del SL</li>
</ul>
</article>

<article>
<h3>Funcionamiento</h3>
<ul>
Expand All @@ -95,49 +105,54 @@ <h3>Funcionamiento</h3>
</ul>
</article>

<!-- #2 -->
<article>
<h3>Introducción/Historia</h3>
<ul>
<li>Creado por Linus Torvalds</li>
<li>Control de versiones distribuido</li>
<li><em>Estándar de facto</em> en el mundo del SL</li>
</ul>
</article>

<!-- #3 -->
<article>
<h3>Instalación</h3>
<p></p>
<pre>
#Linux
apt-get install git (git-core)
pacman -S git
yum install git

#Mac
brew install git

#Win
mSysGit
</pre>
</article>

<article>
<h3>GitHub</h3>
<p>Forja de proyectos de código abierto con tintes de Red Social</p>
<br />
<img src="../images/original.jpg" class="centered" width="400px" />
</article>

<article>
<h3>Creación de una cuenta en GitHub</h3>
<p><a href="http://github.com">GitHub.com</a></p>
<br />
<img src="../images/github.png" class="centered" width="800px" />
</article>

<article>
<h4>Creación</h4>
<h3>Creación de un repositorio en GitHub</h3>
<p>Generación de un par de claves RSA</p>
<pre>
ssh-keygen -t rsa -C "your_email@example.com"
</pre>
<p>Creación del proyecto</p>
<pre>
cd miproyecto
git init
</pre>
<p>Copia de un proyecto</p>
<pre>
git clone url_proyecto
# Creamos una carpeta miproyecto e iniciamos el repositorio
git init miproyecto
# o lo clonamos desde una URI existente
git clone uri_proyecto
</pre>
</article>

<article>
<h4>Primera versión</h4>
<h3>Primera versión</h3>
<pre>
touch README # añadimos algo de información
git add README
Expand All @@ -153,15 +168,51 @@ <h3>
</h3>
<p>Manejando los archivos sometidos a versiones</p>
<pre>
# Añadir archivo
git add archivonuevo

# Eliminar archivo
git rm archivoviejo

# Mover archivo
git mv archivoviejo archivonuevo
</pre>
<div class="source">
<!-- <div class="source">
Fuente: <a href=""></a>
</div>
</div> -->
</article>

<article>
<h3>.gitignore</h3>
<p>Fichero en el que podemos indicar los archivos que nunca querremos en nuestro repositorio</p>
<ul>
<li>Útil para ficheros compilados o metadatos</li>
<li>Usa <strong>wildcards</strong></li>
</ul>
<br />
<pre>
$ cat .gitignore
*.pyc
directorio_que_no_quiero/
</pre>
</article>

<article>
<h3>Manejo de Repositorios</h3>
<h4>Añadimos un repositorio remoto</h4>
<pre>
git remote add nombre_repositorio URI
</pre>
<h4>Listamos nuestros repositorios remotos</h4>
<pre>
git remote -vv
</pre>
<h4>Eliminamos un repositorio remoto</h4>
<pre>
git remote rm nombre_repositorio
</pre>
</article>

<article>
<h3>
Log
Expand Down Expand Up @@ -207,6 +258,7 @@ <h3>Parcheando</h3>
<pre>
# Creamos un parche con la diferencia
git diff archivos > miarchivo.patch

# Aplicamos el parche en nuestro repo
git apply miarchivo.patch
</pre>
Expand Down Expand Up @@ -234,7 +286,7 @@ <h3>Ramas - Funcionalidad</h3>
</article>

<article>
<h4>Conflictos!</h4>
<h3>Conflictos!</h3>
<pre>
git checkout --ours filename.c
git checkout --theirs filename.c
Expand All @@ -249,22 +301,11 @@ <h4>Conflictos!</h4>
git push origin master
</pre>
</article>
<article>
<h4>Despliegue</h4>
<pre>
gem install heroku

#Heroku
heroku login
heroku create --stack cedar
git push heroku master
</pre>
<img src="../images/spocktocat.jpg" style="width: 250px;" class="centered"/>
</article>
<article>
<h3>Más Github!</h3>
<ul>
<li>API</li>
<li><a href="http://develop.github.com/">API</a></li>
<li>Bibliotecas API distintos lenguajes</li>
<li>Gestión de grupos</li>
<li>Bug tracker</li>
Expand All @@ -273,9 +314,10 @@ <h3>Más Github!</h3>
<li>Snippets de código (Gist)</li>
</ul>
<div class="source">
<a href="">Documentación</a>
<a href="http://help.github.com/">Documentación</a>
</div>
</article>

<article>
<h3>
Referencias
Expand All @@ -285,9 +327,46 @@ <h3>
<li><a href="http://help.github.com/">Github Help</a></li>
</ul>
<br />
<p>Presentación en... <a href="">github</a></p>
<p>Presentación en... <a href="https://github.com/javaguirre/slides-git-github">github</a></p>
</article>

<article>
<h3>Cloud 9 IDE</h3>
<p>IDE en la nube</p>
<p><a href="https://github.com/ajaxorg/cloud9/">Repositorio en GitHub</a></p>
<br />
<img src="../images/C9logo.png" width="300px" class="centered" />
</article>

<article>
<h3>Heroku</h3>
<p>Plataforma de Deploy en la nube</p>
<ul>
<li>Definimos las dependencias en un fichero</li>
<li>Hacemos push a heroku</li>
<li>Listo</li>
</ul>
<br />
<img src="../images/herokulogo.png" class="centered" />
</article>

<article>
<h3>Despliegue</h3>
<pre>
gem install heroku

#Heroku
heroku login
heroku create --stack cedar
git push heroku master
</pre>
<img src="../images/spocktocat.jpg" style="width: 250px;" class="centered"/>
</article>

<article>
<h1>Taller</h1>
</article>

<article>
<h3>
¿Preguntas?
Expand Down
2 changes: 1 addition & 1 deletion template/index2.html
Expand Up @@ -18,7 +18,7 @@

<meta charset='utf-8'>
<script
src='http://html5slides.googlecode.com/svn/trunk/slides.js'></script>
src='slides.js'></script>
</head>

<style>
Expand Down

0 comments on commit 11f8b4b

Please sign in to comment.