If you control the git server and have shell access to it, then you can use
a "hook" script as described in the git docs at
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks .

If you are using a hosted git server (like GitHub, Bitbucket, Assembla,
Visual Studio, etc.), investigate the provider's documentation on
webhooks.  Most provide webhook based notification of changes.  For
example, https://developer.github.com/webhooks/creating/ or
https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html

Mark Waite

On Sat, Apr 28, 2018 at 5:02 PM Gopichand Nakkala <nakka...@gmail.com>
wrote:

> Hi
>
> I am trying to find an automatic way to check if any new tag is pushed to
> a git repo or not?what options are there in git to figure this out?
>
> lets say I have the following tags on a git repo, now when a new tag 
> "TAG1620R53_REL_16_30_52_7"
> is pushed I want to detect it and trigger a script..how to do that?
>
> git tag --list 'TAG1620R53*' --sort=taggerdate
>
> TAG1620R53_REL_16_30_6
>
> TAG1620R53_REL_16_30_19_2
>
> TAG1620R53_REL_16_30_19_4
>
> TAG1620R53_REL_16_30_27_4
>
> TAG1620R53_REL_16_30_27_4_CORRECTED
>
> TAG1620R53_REL_16_30_36
>
> TAG1620R53_REL_16_30_43
>
> TAG1620R53_REL_16_30_43_2
>
> TAG1620R53_REL_16_30_47_2
>
> TAG1620R53_REL_16_30_47_3
>
> TAG1620R53_REL_16_30_52_3
>
> TAG1620R53_REL_16_30_52_6
>
> --
> 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