Skip to content

Instantly share code, notes, and snippets.

@severak
Created March 12, 2020 14:51
Show Gist options
  • Save severak/c9cc6376231dc6cf24c92eb3eb2c26b3 to your computer and use it in GitHub Desktop.
Save severak/c9cc6376231dc6cf24c92eb3eb2c26b3 to your computer and use it in GitHub Desktop.
@echo off
if "%1" EQU "" (
echo "param [projectname] is missing"
exit /b
)
cd "%1" || exit /b
echo repo:
git rev-parse --show-toplevel
echo from:
git config --get remote.origin.url
echo branch:
git symbolic-ref --short -q HEAD
echo:
git log --format="format:%%an %%ar:%%n%%h %%s" -n 1
echo:
if exist .env.local (
echo .env.local:
echo:
type .env.local
echo:
echo =*=*=*=*=*=
)
if exist app/config/parameters.yml (
echo app/config/parameters.yml:
echo:
type app\config\parameters.yml
echo:
echo =*=*=*=*=*=
)
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment