Last active
March 5, 2025 23:09
-
-
Save RyujiAMANO/204f8c828906e90d3c86fa02fa4c8973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Alias | |
git config --global alias.s status | |
git config --global alias.b branch | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
# git pushで同名ブランチにPUSH | |
git config --global push.default current | |
# Gitのエイリアスを設定 | |
echo "✅ Gitエイリアスを設定" | |
git config --global alias.unstage "reset HEAD" | |
echo "🔹 unstage → ステージングをすべて取り消す" | |
git config --global alias.uncommit "reset --soft HEAD~1" | |
echo "🔹 uncommit → 直前のコミットを取り消す" | |
git config --global alias.updated "!git diff --name-only --diff-filter=M" | |
echo "🔹 updated → 変更されたファイルをリストアップ(ディレクトリ除外)" | |
git config --global alias.added "!git ls-files --others --exclude-standard" | |
echo "🔹 added → 追加されたファイル・フォルダをリストアップ(.gitignore 無視)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment