Answer the question
In order to leave comments, you need to log in
How to find out the name of the current git branch in batch and switch to this branch in another folder?
There are several folders with the same php project (such as subdomains). To speed up the process of syncing these folders, I made this .bat file that I run after git push in the main folder
@echo off
cd D:\OSPanel\domains\app-main
git pull
cd D:\OSPanel\domains\5m.app.local
git pull
cd D:\OSPanel\domains\app
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question