Skip to content

Commit ef180a3

Browse files
committed
arquivos bat
1 parent 1b93ee2 commit ef180a3

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo off
2+
setlocal enabledelayedexpansion
3+
4+
:: Starts the scan from the folder where the script is running
5+
for /r %%d in (*.csproj) do (
6+
set "folder=%%~dpd"
7+
8+
:: Check if the 'bin' folder exists and delete it
9+
if exist "!folder!bin" (
10+
echo Deleting the bin folder in: !folder!
11+
rmdir /s /q "!folder!bin"
12+
)
13+
14+
:: Check if the 'obj' folder exists and delete it
15+
if exist "!folder!obj" (
16+
echo Deleting the obj folder in: !folder!
17+
rmdir /s /q "!folder!obj"
18+
)
19+
)
20+
21+
echo Completed.
22+
pause

commit-push.bat

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
3+
echo Current folder: %cd%
4+
5+
git status --porcelain > nul
6+
if errorlevel 1 (
7+
echo There are no changes to the repository.
8+
pause
9+
exit /b 0
10+
)
11+
12+
set /p "commit_message=Enter the commit message: "
13+
14+
git add --all
15+
git commit -m "%commit_message%"
16+
git push
17+
18+
echo Git operations completed successfully.
19+
echo --------------------------------------
20+
pause

0 commit comments

Comments
 (0)