diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-02-12 22:03:58 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-02-12 22:03:58 +0100 |
commit | 8b3a702b17a0c4b4679d6cc274713b6e52a323b5 (patch) | |
tree | c6e80164b7a9549ccdfbb931f7a21379e7c91019 /git.txt | |
parent | 144c8fc5a4ac2740bc443f849e8ab762f9b4f78e (diff) | |
download | notes-8b3a702b17a0c4b4679d6cc274713b6e52a323b5.tar.gz notes-8b3a702b17a0c4b4679d6cc274713b6e52a323b5.zip |
updated git, added fish
Diffstat (limited to 'git.txt')
-rw-r--r-- | git.txt | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -8,7 +8,9 @@ |tags| |diff| |log| + |inspection| |patching| + |submodules| |revision_range| - *remote* @@ -51,6 +53,11 @@ git log --graph ............................. text based graph of commit history git log --decorate .......................... decorate log with REFs + - *inspection* + git ls-tree [-r] <ref> ...................... show git tree for <ref>, -r to recursively ls sub-trees + git show <obj> .............................. show <obj> + git cat-file -p <obj> ....................... print content of <obj> + - *patching* git format-patch <opt> <since>/<revision range> opt: @@ -73,6 +80,15 @@ # generate single patch file from a certain commit/ref git format-patch <COMMIT/REF> --stdout > my-patch.patch + - *submodules* + git submodule add <url> [<path>] ............ add new submodule to current project + git clone --recursive <url> ................. clone project and recursively all submodules (same as using + 'git submodule update --init --recursive' after clone) + git submodule update --init --recursive ..... checkout submodules recursively using the commit listed in the + super-project (in detached HEAD) + git submodule update --remote <submod> ...... fetch & merge remote changes for <submod>, this will pull + origin/HEAD or a branch specified for the submodule + - *revision_range* HEAD ........................................ last commit HEAD~1 ...................................... last commit-1 |