0
0

git add ~ push するとき用のバッチファイル

Last updated at Posted at 2024-04-17

初回プッシュのときにしか必要ないコマンドも含まれてるけどもう最初で毎回手間取るのがめんどくさいので全部ひっくるめてやった。
あまり人間をなめるなよ。

push.bat
@echo off
cd %~dp0

git add -A
git commit -m %1

git config pull.rebase false
git pull --allow-unrelated-histories origin main
git push -u origin main

使い方:
引数にcommit message(ダブルクオーテーションで囲む) を書いて実行

例:

./push.bat [コミットメッセージ]
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