Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new shell command substitution syntax #1915

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/05-distributed-git/sections/maintaining.asc
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ The command to do this is `git archive`:

[source,console]
----
$ git archive master --prefix='project/' | gzip > `git describe master`.tar.gz
$ git archive master --prefix='project/' | gzip > "$(git describe master).tar.gz"
$ ls *.tar.gz
v1.6.2-rc1-20-g8c5b85c.tar.gz
----
Expand All @@ -522,7 +522,7 @@ You can also create a zip archive in much the same way, but by passing the `--fo

[source,console]
----
$ git archive master --prefix='project/' --format=zip > `git describe master`.zip
$ git archive master --prefix='project/' --format=zip > "$(git describe master).zip"
----

You now have a nice tarball and a zip archive of your project release that you can upload to your website or email to people.
Expand Down