Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git tag status while not in directory

I am working on a project, where I am trying to see all tags while I am not in the directory. I see that it's possible to commit or push, but is it also possible to list the tags while you are not in the directory?

This command didn't work:

cd mln/projects/test/projectx-test/; git tag show
like image 457
user3270211 Avatar asked Oct 31 '25 14:10

user3270211


1 Answers

To execute a git command from any folder, you could simply add the path to the repo:

git --git-dir=/path/to/repo/.git tag

(git tag show does not exist as a git command: see git tag man page)

like image 60
VonC Avatar answered Nov 04 '25 01:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!