My Arch AUR PKGBUILD's
# clone if no repository clones
git clone https://github.com/arcan1s/pkgbuild.git
cd pkgbuild
git submodule update --init
cd pkgbuild
git submodule add ssh+git://aur@aur.archlinux.org/$pkgbase.git/
# some changes here if required (see package update below)
git add $pkgbase
git commit -m 'add $pkgbase'
git push
cd pkgbuild/$pkgbase
vim PKGBUILD
# some changes here
mksrcinfo
git add PKGBUILD .SRCINFO # newly created (edited) files should be added too
# please do not use -A since it will add binaries too
git commit -m 'bump $pkgbase to $pkgver-$pkgrel'
git push
# now update repository if there are no errors
cd ..
git add $pkgbase
git commit -m 'bump $pkgbase to $pkgver-$pkgrel'
git push
cd pkgbuild
git submodule foreach git pull origin master
git add -A . # or something like this
git commit -m 'bump packages to aur versions'
git push