Git Your Project In Github
Git Your Project In Github
Due to increasing demand from clients, Plain Black is moving to Git. Here are reasons why you should also consider Git for managing your software projects: http://whygitisbetterthanx.com/
Account SetupFirst, if you haven’t already set up your Github account, you’ll need to do that. If you don’t plan on immediately creating a private project, you can start with a free account: http://github.com/plans
http://github.com/guides/providing-your-ssh-key
ssh-add -K ~/.ssh/id_rsa Working SetupFor client development purposes, we’ll assume the following layout. /data/WebGUI
. /data/wre/sbin/setenvironment.sh mkdir -p /data/tmp cd /data/tmp curl -O http://www.plainblack.com/downloads/builds/7.5.25-stable/webgui-7.5.25-stable.tar.gz tar zxvf webgui-7.5.25-stable.tar.gz rm webgui-7.5.25-stable.tar.gz mv WebGUI /data/WebGUIAcme
perl switch_webgui.pl --no-wre-restart WebGUIAcme
/data/WebGUIAcme/acme
/data/WebGUIAcme/acme /data/WebGUIAcme/acme.org /data/WebGUIAcme/acme.gov Git Your Working CopyLet’s convert the WebGUI installation to a local Git repository. First, let’s remove any stray Subversion metadata: cd /data/WebGUIAcme find . -name .svn -type d | xargs -I{} m -r {}
git init git add .
git svn clone -T / https://svn.webgui.org/acme git add acme
git commit -m “Initial commit of Acme Corporation client code and custom patched version of WebGUI 7.5.25-stable” Github PushCopy the path from the project page, and specify Github as a remote repository: git remote add github git@github.com:plainblack/acme.git
cat .git/config
git push github master
|

