0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Git/Mavenコマンドめも

Last updated at Posted at 2025-05-02

Gitコマンドめも

特定ブランチをpullするコマンド

git clone -b {branch} https://xxxx.git

pullしてくるdosバッチ

pull.bat
@echo off
cls
cmdkey /delete:git:https://{url}:{port}
cmdkey /generic:LegacyGeneric:target=git:https://{url}:{port} /user:{user} /pass:"{pass}"
 
echo # {branchname}
git -C C:/git/xxxxx pull origin {branchname}
echo.
 
timeout /nobreak 10
exit /b

Maven installバッチ

mvninstall.bat
@echo off
cls

echo # {branch}
cd C:/git/{branch}
 
call mvn clean install
echo.
 
cd C:/git/
 
timeout /nobreak 10
exit /b
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?