S
S
Sergey Pugovkin2018-09-10 15:39:06
git
Sergey Pugovkin, 2018-09-10 15:39:06

How to specify a specific version in git clone, and not the latest one?

What is the best way to install something from github.
For example, now I do this:

cd /usr/local/src && git clone https://github.com/openresty/lua-resty-string && cd lua-resty-string && make LUA_VERSION=5.1 install

And if you need a specific version, and not the latest? How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2018-09-10
@Driver86

git clone https://github.com/openresty/lua-resty-string.git -b v0.11

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question