Skip to content

Commit

Permalink
Now in line with 2.1.87 of progit2-en (progit#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpt-xx authored Oct 1, 2018
1 parent 443757a commit 043502c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/02-git-basics/sections/recording-changes.asc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions book/02-git-basics/sections/tagging.asc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,27 @@ To [email protected]: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 <tagnaam>` 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 <remote> :refs/tags/<tagnaam>` gebruiken:

[source,console]
----
$ git push origin :refs/tags/v1.4-lw
To /[email protected]: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:
Expand Down
2 changes: 1 addition & 1 deletion book/10-git-internals/sections/packfiles.asc
Original file line number Diff line number Diff line change
Expand Up @@ -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(+)
----
Expand Down
Binary file modified diagram-source/progit.sketch
Binary file not shown.
Binary file modified images/reset-squash-r3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 043502c

Please sign in to comment.