Skip to content

Instantly share code, notes, and snippets.

@appwebd
Created February 5, 2021 14:28
Show Gist options
  • Save appwebd/6ef9ce22ebe812fd3be0021e682333ef to your computer and use it in GitHub Desktop.
Save appwebd/6ef9ce22ebe812fd3be0021e682333ef to your computer and use it in GitHub Desktop.
[git commit and git push] Perform a git commit and git push in console bash #git #bash #github #gitlab
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git commit and git push in console bash
# Usage : In the DCL git-commit-and-git-push.sh
git log --oneline --format="%h %cd %s" > CHANGELOG
sync
sync
git commit -a -S
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment