Tag Archives: git

Signing Git Commits without Entering Password Using `gpg-agent` and `pinentry-mac` on OS X

Install required packages via Homebrew:

$ brew install gpg gpg-agent pinentry-mac

Edit and add the following lines in ~/.gnupg/gpg-agent.conf:

pinentry-program /usr/local/bin/pinentry-mac

Edit and enable use-agent in ~/.gnupg/gpg.conf:

use-agent

Then add the following line to your shell profile:

eval $(gpg-agent --daemon --sh)

Using git-svn to Update WordPress Plugin from GitHub, Syncing to WordPress.org Repository

# Get earliest commit on WordPress repo
svn log -r 1:HEAD –limit 1 https://plugins.trac.wordpress.org/log/plugin-name
# Clone a git repo from WordPress
git svn clone -s -r599654 –no-minimize-url –prefix=origin/ http://plugins.svn.wordpress.org/plugin-name/
cd plugin-name
git svn fetch
git svn rebase
# Add GitHub remote repo
git remote add origin [email protected]:user/plugin-name.git
git push origin master
# After editing files
git add –all
git commit -am "Edited files"
git tag v2.0.0
git push -u origin master –tags
# Push to WordPress repo, it may take long
git svn rebase
git svn dcommit
# Tagging new release if necessary
git svn tag "2.0.0"
# Need to edit files again on git repo? rebase first
git rebase

Reference