Created
February 12, 2025 21:58
-
-
Save ariel-frischer/8c978b79aec46a25b5d0e54e28b3a864 to your computer and use it in GitHub Desktop.
Fast and Easy AI Git ADD, COMMIT, PUSH alias 'ocp'
This file contains 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
# Install + configure https://github.com/di-sukharev/opencommit | |
# Use ocp for quick git add + commit + push | |
function ocp() { | |
local remote="$1" | |
git add -A | |
oco --yes | |
if [ -n "$remote" ]; then | |
git push "$remote" | |
else | |
git push | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment