In order to create a new, empty, local Git repository for a package, simply git clone the remote repository with the corresponding name. If the package does not exist on AUR yet, you will see the following warning:
git clone ssh://firstname.lastname@example.org/package_name.git Cloning into 'package_name'... warning: You appear to have cloned an empty repository. Checking connectivity... done.
If you have already created a git repository, you can simply create a remote for the AUR git repository and then fetch it:
git remote add remote_name ssh://email@example.com/package_name.git git fetch remote_name
remote_name is the name of the remote to create (e.g., “origin”).
makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO git commit -m "useful commit message" git push