]> granicus.if.org Git - nethack/commitdiff
finally remember to add the 'nh-' versions
authorDerek S. Ray <derekray@gmail.com>
Mon, 16 Mar 2015 21:26:31 +0000 (17:26 -0400)
committerDerek S. Ray <derekray@gmail.com>
Mon, 16 Mar 2015 21:26:31 +0000 (17:26 -0400)
DEVEL/git_recipes.txt

index 71ce0e5dca1bb500a22c7883ab4183961f9e7ec9..88af7f927e422460d99547932f6743b5656fe7a2 100644 (file)
@@ -34,12 +34,17 @@ you specify:
 
 
 [*] git add (filename)
+[*] git nhadd (filename)
 
 Adds the changes you've made in (filename) to the pre-commit staging area.
 (also referred to as the 'index')
 
+"nhadd" is the preferred syntax and will automatically update the source file
+headers with the latest date, branch, and version.
+
 
 [*] git commit [-a] [-m "text"]
+[*] git nhcommit [-a] [-m "text"]
 
 Commits all staged changes (in the index) to this branch in your local repo
 from your current position.
@@ -47,6 +52,9 @@ Including -a will 'git add' all eligible files before doing so.
 Including -m will use "text" as the commit message instead of opening an
 editor window for you to create one.
 
+"nhcommit" is the preferred syntax and will automatically update the source file
+headers with the latest date, branch, and version.
+
 
 [*] git push [--all] [-u origin (branch)]
 
@@ -61,7 +69,7 @@ branch.
 
 Without any parameters, unstages the changes for (filename) from the index;
 does not change the working tree. This is the equivalent of the command 
-[*] git reset --mixed (filename); git reset --soft (filename) has no effect.
+git reset --mixed (filename); git reset --soft (filename) has no effect.
 
 With --hard, unstages (filename) from the index and reverts (filename) in
 the working tree to the most recent commit.
@@ -160,6 +168,20 @@ you must commit them manually later (likely after you have edited them). This
 more accurately mimics the merge behavior of svn [and cvs?]
 
 
+[*] git stash [save | apply | list] <stashname>
+
+save: Takes all changes in your working directory and 'stashes' them in a temporary
+holding area. Convenient if the command you're trying to run won't go unless
+you have a clean working dir; also convenient to move experimental changes
+between branches without needing to commit them.
+
+apply: Replays the named stash onto your current working directory as though
+it were a patch. Does not delete the stash from the list.
+
+list: Lists all of your stashed code blobs.
+
+
+
 =======================================
 Typical workflows for common activities
 =======================================