diff --git a/book/02-git-basics/sections/recording-changes.asc b/book/02-git-basics/sections/recording-changes.asc index 49ef0a40..50bea320 100644 --- a/book/02-git-basics/sections/recording-changes.asc +++ b/book/02-git-basics/sections/recording-changes.asc @@ -246,7 +246,7 @@ Hier is nog een voorbeeld van een `.gitignore` bestand: # only ignore the TODO file in the current directory, not subdir/TODO /TODO -# ignore all files in the build/ directory +# ignore all files in any directory named build build/ # ignore doc/notes.txt, but not doc/server/arch.txt diff --git a/book/02-git-basics/sections/tagging.asc b/book/02-git-basics/sections/tagging.asc index cb00d801..3638857b 100644 --- a/book/02-git-basics/sections/tagging.asc +++ b/book/02-git-basics/sections/tagging.asc @@ -219,6 +219,27 @@ To git@github.com:schacon/simplegit.git Als nu iemand anders van jouw repository kloont of pullt, dan zullen zij al jouw tags ook krijgen. +==== Tags verwijderen + +Om een tag uit je lokale repository te verwijderen, kan je `git tag -d ` gebruiken. +Als voorbeeld, we kunnen onze lichtgewicht tag hierboven als volgt verwijderen: + +[source,console] +---- +$ git tag -d v1.4-lw +Deleted tag 'v1.4-lw' (was e7d5add) +---- + +Merk op dat dit niet de tag van enig remote server verwijdert. +Om ook de remotes bij te werken, moet je `git push :refs/tags/` gebruiken: + +[source,console] +---- +$ git push origin :refs/tags/v1.4-lw +To /git@github.com:schacon/simplegit.git + - [deleted] v1.4-lw +---- + ==== Tags uitchecken Als je de lijst van bestandsversies wilt zien waar een tag naar verwijst, kan je een git checkout doen, maar dit zet je repository wel in een ``detached HEAD'' status, wat een aantal nadelige bijeffecten heeft: diff --git a/book/10-git-internals/sections/packfiles.asc b/book/10-git-internals/sections/packfiles.asc index f95649d7..3e8e61ba 100644 --- a/book/10-git-internals/sections/packfiles.asc +++ b/book/10-git-internals/sections/packfiles.asc @@ -61,7 +61,7 @@ Wijzig nu dat bestand een beetje, en kijk wat er gebeurt: [source,console] ---- $ echo '# testing' >> repo.rb -$ git commit -am 'modified repo a bit' +$ git commit -am 'modified repo.rb a bit' [master 2431da6] modified repo.rb a bit 1 file changed, 1 insertion(+) ---- diff --git a/diagram-source/progit.sketch b/diagram-source/progit.sketch index d866bbe6..9b804c75 100644 Binary files a/diagram-source/progit.sketch and b/diagram-source/progit.sketch differ diff --git a/images/reset-squash-r3.png b/images/reset-squash-r3.png index 87e44cbe..9f5f9b2f 100644 Binary files a/images/reset-squash-r3.png and b/images/reset-squash-r3.png differ