aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2012-11-19 19:01:37 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2012-11-19 19:01:37 +0100
commitdbc0aa7a6e3fdb7fc723d079a6c3b99bab83babf (patch)
treec4551d36b90add0e5c5e6fe66cc2fb96afec8dfd
parent80ef3ce0f92ec0b15f90db53ef4816e02c4a4875 (diff)
Spezzate slide troppo lunghe
-rw-r--r--introduzione_a_git.rest67
1 files changed, 48 insertions, 19 deletions
diff --git a/introduzione_a_git.rest b/introduzione_a_git.rest
index c871be5..ca964da 100644
--- a/introduzione_a_git.rest
+++ b/introduzione_a_git.rest
@@ -1,8 +1,6 @@
Introduzione a GIT
==================
-.. footer:: LIFO
-
.. contents::
:class: handout
@@ -186,6 +184,9 @@ Commit
# new file: greeter/greeter.py
#
+Commit (2)
+----------
+
::
".git/COMMIT_EDITMSG" 14L, 377C written
@@ -196,7 +197,7 @@ Commit
create mode 100644 greeter/greeter.py
-LOG
+log
---
.. class:: handout
@@ -213,6 +214,9 @@ LOG
Skeleton for the new project.
+Show
+----
+
.. class:: handout
E con ``git show`` possiamo vedere i dettagli del commit, con
@@ -242,8 +246,8 @@ LOG
+
[...]
-Iniziamo a lavorarci
---------------------
+Iniziamo a lavorarci (1)
+------------------------
.. class:: handout
@@ -257,6 +261,9 @@ Iniziamo a lavorarci
def greet(self):
print "Hello World!"
+Iniziamo a lavorarci (2)
+------------------------
+
``greeter.py``::
#!/usr/bin/env python
@@ -450,8 +457,8 @@ Che bel sole là fuori!
ad internet. Inoltre ogni clone del repository è un backup completo,
utile nel caso in cui succeda qualcosa ad un hard disk.
-Aggiunte successive
--------------------
+Aggiunte successive (1)
+-----------------------
.. class:: handout
@@ -474,6 +481,9 @@ Aggiunte successive
if __name__ == '__main__': main()
+Aggiunte successive (1)
+-----------------------
+
::
$ git add greeter.py
@@ -481,8 +491,8 @@ Aggiunte successive
[people 59b9d39] greeter.py: support for a custom greetee.
1 file changed. 6 insertions(+). 1 deletion(-)
-Ora di rientrare
-----------------
+Ora di rientrare (1)
+--------------------
.. class:: handout
@@ -492,7 +502,6 @@ Ora di rientrare
::
- $git push
$ git push
Counting objects: 5, done.
Delta compression using up to 2 threads.
@@ -518,6 +527,9 @@ Ora di rientrare
! [remote rejected] people -> people (branch is currently checked out)
error: failed to push some refs to '/home/[...]/greeter/'
+Ora di rientrare (2)
+--------------------
+
.. class:: handout
C'è un problema: git non permette di fare push che dovrebbero modificare
@@ -579,8 +591,8 @@ Bugfixing della versione stabile
1 file changed, 1 insertion(+), 1 deletion(-)
-Reintegriamo in master
-----------------------
+Reintegriamo in master (1)
+--------------------------
.. class:: handout
@@ -594,7 +606,6 @@ Reintegriamo in master
$ gitk -a
.. figure:: images/gitk01.png
- :align: left
.. class:: handout
@@ -611,6 +622,12 @@ Reintegriamo in master
commit 59b9d3971db8cb872c798b215365b22fb20aa5a7
[...]
commit d78d34010156781d20ef194a62f00d4eb9edb26b
+
+Reintegriamo in master (2)
+--------------------------
+
+::
+
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: greeter/greeter.py: support for multiple greetees
@@ -624,8 +641,7 @@ Reintegriamo in master
commit 2229a1833b2dd00922978140d5b7e16688408ee1
$ gitk -a
-.. figure:: images/gitk01.png
- :align: left
+.. figure:: images/gitk02.png
.. class:: handout
@@ -633,6 +649,11 @@ Reintegriamo in master
ma almeno possiamo vedere che il nostro branch è la prosecuzione
naturale di master.
+Reintegriamo in master (3)
+--------------------------
+
+.. class:: handout
+
Già che ci siamo, però, possiamo decidere che i due commit riguardano
la stessa modifica, per cui possiamo unirli in un commit solo.
@@ -661,6 +682,9 @@ Reintegriamo in master
# However, if you remove everything, the rebase will be aborted.
#
+Reintegriamo in master (3a)
+---------------------------
+
::
Support for a custom greetee.
@@ -682,6 +706,9 @@ Reintegriamo in master
# modified: greeter/greeter.py
#
+Reintegriamo in master (3b)
+---------------------------
+
::
".git/COMMIT_EDITMSG" 18L, 509C written
@@ -690,7 +717,8 @@ Reintegriamo in master
2 files changed, 8 insertions(+), 3 deletions(-)
Successfully rebased and updated refs/heads/people.
-
+Reintegriamo in master (4)
+--------------------------
.. class:: handout
@@ -705,7 +733,9 @@ Reintegriamo in master
$ gitk -a
.. figure:: images/gitk03.png
- :align: left
+
+Reintegriamo in master (5)
+--------------------------
::
@@ -722,7 +752,6 @@ Reintegriamo in master
$ gitk -a
.. figure:: images/gitk04.png
- :align: left
Un bel backup
-------------
@@ -787,7 +816,7 @@ Non github?
Alternative:
-* <http://repo.or.cz/>_
+* http://repo.or.cz/
* gitolite_ + gitweb_ self-hosted
* ...