Local Sites/uyokyokusetsu-blog-local/app/public/wp-content/themes/Uyokyokusetsu-blog-dev
functions.phpの ▼ 3. ダッシュボード警告バナーで下記をを設定している。 add_action(‘admin_notices’, function()
if (WP_ENV === 'production')
echo '<div style="padding:12px; background:#ff4444; color:#fff; font-size:18px; font-weight:bold; text-align:center;">
🔴【本番環境】です。操作に注意!
</br>※functions.phpに記載。
git pull origin main
git add .
git commit -m "今日の変更内容"
git commit-m “今日の変更内容” # ❌ スペースを入れ忘れると commit できない
git push origin main
※ push する前には必ず git pull を忘れない!
Local Sites/uyokyokusetsu-blog-local/app/public/wp-content/themes/Uyokyokusetsu-blog-dev
→ VSCode を開くたびに目に入るので pull を忘れなくなる
→ pull していない時に赤色警告で表示される
# pull
git pull origin main
# ステージング
git add .
# コミット
git commit -m "メッセージ"
# push
git push origin main
必要であれば、あなた専用のもっと簡単な超シンプル版README.mdも作れます。
test test test テスト