# Result from git command

**URL:** https://www.finalbuilder.com/forums/t/result-from-git-command/6751
**Category:** Discussion
**Tags:** git
**Created:** [March 24, 2020, 1:18pm UTC](https://www.finalbuilder.com/forums/t/result-from-git-command/6751 "2020-03-24T13:18:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KLund](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/klund/32/939_2.png) [@KLund](https://www.finalbuilder.com/forums/u/KLund)
#### Post date: [March 24, 2020, 1:18pm UTC](https://www.finalbuilder.com/forums/t/result-from-git-command/6751/1 "2020-03-24T13:18:31Z")

</div>

Hi, I want to check on github if a specific tag exists  
So in this case I can use Git generic:

git ls-remote --tags origin | grep 2019.12.302.1350

if the tag is found then console display like:

45a568cad6c44fe9eaaa8c1ec25f404506c6e37d refs/tags/2019.12.302.1350

So the result is either nothing or a string.  
How can I check this in FinalBuilder ?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 24, 2020, 9:21pm UTC](https://www.finalbuilder.com/forums/t/result-from-git-command/6751/2 "2020-03-24T21:21:25Z")

</div>

You will need to use the Execute Program action as the git generic action is missing the option to suppress some things from the log,

 ![Git-ls-remote](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/4705298c8b2426fe84369342fabc87f071afff89.png)  
Also on the Runtime tab under logging properties click the … button

![LogToVariable](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/bdf82b085279320802808f4daa03455e074336a6.png)

Lastley, we need to suppress the command parameters from the log, you can do that from the action properties view with the action selected.

![LogProcessParameters](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/7544f510d496dceb2bf56a887ef4da055dc22afe.png)

Note that the format of the output might be different, in my tests, there was no space between the commit id and the tag.

---

<div class="post-metadata">

### Author: ![KLund](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/klund/32/939_2.png) [@KLund](https://www.finalbuilder.com/forums/u/KLund)
#### Post date: [March 25, 2020, 7:08am UTC](https://www.finalbuilder.com/forums/t/result-from-git-command/6751/3 "2020-03-25T07:08:00Z")

</div>

Thanks for quick reply. I try that 🙂
