Skip to content

Instantly share code, notes, and snippets.

@ariel-frischer
Created February 12, 2025 21:58
Show Gist options
  • Save ariel-frischer/8c978b79aec46a25b5d0e54e28b3a864 to your computer and use it in GitHub Desktop.
Save ariel-frischer/8c978b79aec46a25b5d0e54e28b3a864 to your computer and use it in GitHub Desktop.
Fast and Easy AI Git ADD, COMMIT, PUSH alias 'ocp'
# 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