0
-Rather than diving into a sea of Git commands, use these elementary examples to get your feet wet. Despite their simplicity, each of them are useful
in real life.
0
+Rather than diving into a sea of Git commands, use these elementary examples to get your feet wet. Despite their simplicity, each of them are useful
.
0
@@ -87,11 +87,11 @@ In a court of law, events can be stricken from the record. Likewise, you can pic
0
-will undo just the commit with the given hash. Running *git log* reveals the revert is recorded as
new commit.
0
+will undo just the commit with the given hash. Running *git log* reveals the revert is recorded as
a new commit.
0
=== Dowloading Files ===
0
-
If a project uses Git to manage its files, you can get a copy with:
0
+
Get a copy of a project managed with Git by typing:
0
$ git clone git://server/path/to/files
0
@@ -99,17 +99,17 @@ For example, to get all the files I used to create this site:
0
$ git clone git://git.or.cz/gitmagic.git
0
-We'll have
a lot more to say about the *clone* command later.
0
+We'll have
much to say about the *clone* command soon.
0
=== The Bleeding Edge ===
0
-If
a project uses Git to manage its files, and you've already downloaded a copy using *git clone*, you can upgrade to the latest version with:
0
+If
you've already downloaded a copy of a project using *git clone*, you can upgrade to the latest version with:
0
=== Instant Publishing ===
0
-Let's say you've written a script you'd like to share with others. You could just tell them to download from your computer, but if they do so while you're improving the script or making experimental changes, they could wind up in trouble. Of course, this is why release cycles exist.
Code is written, and at certain points in time, when it's suitable for others, it gets released.
0
+Let's say you've written a script you'd like to share with others. You could just tell them to download from your computer, but if they do so while you're improving the script or making experimental changes, they could wind up in trouble. Of course, this is why release cycles exist.
Developers work on code, and when they feel it's suitable for others, they release the code.
0
To do this with Git, in the directory where your script resides:
0
@@ -117,19 +117,19 @@ To do this with Git, in the directory where your script resides:
0
$ git commit -m "First release"
0
-Then tell your users to
type0
+Then tell your users to
run:0
$ git clone your.computer:/path/to/script
0
-to download your script. This assumes they have ssh access. If not, run *git daemon* and tell your users to
type0
+to download your script. This assumes they have ssh access. If not, run *git daemon* and tell your users to
instead run:0
$ git clone git://your.computer/path/to/script
0
-From now on, every time your script is ready for release,
type:
0
+From now on, every time your script is ready for release,
execute:
0
$ git commit -a -m "Next release"
0
-and your users can upgrade their version by changing to the directory containing your script and typing
.0
+and your users can upgrade their version by changing to the directory containing your script and typing
:
Comments
No one has commented yet.