I am currently working on IPC (industrial PC) of production line with some equipment and machines. just wondering to know how to get the name of running branch on each machine? for example I have 5 different branches for an specific machine and just need to know which one is running on machine now.
Asked
Active
Viewed 38 times
1 Answers
-1
The following command displays the current branch, without the others:
git rev-parse --abbrev-ref HEAD

Raida
- 1,206
- 5
- 17
-
Do not [copy answers from others](https://stackoverflow.com/a/12142066/1293244). – Ron van der Heijden Mar 25 '22 at 15:51
-
I didn't copy, I have it as an alias on my computer – Raida Mar 25 '22 at 15:51