Thank you for the response.
Just wanted to know is there any way i can get the previous tag details.

On 13 August 2018 at 18:47, Konstantin Khomoutov <kos...@bswap.ru> wrote:

> On Mon, Aug 13, 2018 at 05:23:53AM -0700, sshobha...@gmail.com wrote:
>
> [...]
> > when i try to execute the below command it throws me an error
> >
> > $git describe --abbrev=0 --tags $(`git rev-list --tags --skip-count=1
> > --max-count=1`)
> > Error:  fece0ddf3d4ef9b61640b5ae4c3c5f0e3abaf326: command not found.
> [...]
>
> When your shell sees a `...` construct, it takes the text between the
> backticks, executes it as a comand and replaces the source text and the
> backticks with the output that command sent to its standard output
> stream. For the `git rev-list` command, this is the SHA-1 name of a
> commmit.
>
> When the shell sees a $(...) construct, it does with the text between
> the opening "$(" and the closing ")" and treats it almost the same way
> it does for the `...` construct (the exact differences are of no
> interest here).
>
> So what happens here is that you ask the shell to interpret the SHA-1
> name of a commit found by the `git rev-list` command as another command.
> There is no point doing that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to