Thanks a lot I understood the logic now. On Aug 13, 2018 7:45 PM, "Konstantin Khomoutov" <kos...@bswap.ru> wrote:
> On Mon, Aug 13, 2018 at 07:10:11PM +0530, shobha shobha wrote: > > > Thank you for the response. > > Just wanted to know is there any way i can get the previous tag details. > > Let me know if you have any specific troubles interpreting the > explanation of your problem in my original response. > > > > [...] > > > > 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.