« GitHub で、アプリケーションを公開 No.2 | メイン | GitHub で、アプリケーションを公開 No.4 »

Git

GitHub で、アプリケーションを公開 No.3

ベクターに無料公開中の ethna アプリケーション formmail を Github に公開。

●新規リポジトリを作成。
https://github.com/new
ローカルのアプリケーションは formmail ディレクトリ配下
https://github.com/remixgrjp/formmail

●Github で新しくリポジトリを作ると https://github.com/remixgrjp/formmail に公開手順が示される
Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:remixgrjp/formmail.git
git push -u origin master

Push an existing repository from the command line
git remote add origin git@github.com:remixgrjp/formmail.git
git push -u origin master
●その前に、gitconfig 設定...▼
[taro@fitPC2i ~]$ cat ~/.gitconfig
[user]
    name=remixgrjp
    email=mymail@domain
[color]
	ui = auto
●アプリケーション formmail は ~/web/www/appli/formmail
[taro@fitPC2i ~]$ cd ~/web/www/appli/formmail
●git で管理する必要のないファイル・ディレクトリを設定
[taro@fitPC2i formmail]$ cat .gitignore
log/
tmp/
.git*
●やり直す場合 ディレクトリ .git を消す(Githubも同様リポジトリを削除)
[taro@fitPC2i formmail]$ rm -Rf .git
●ローカルのアプリケーションで git 初期化
[taro@fitPC2i formmail]$ touch README.md
[taro@fitPC2i formmail]$ git init
Initialized empty Git repository in /home/taro/web/www/appli/formmail/.git/
[taro@fitPC2i formmail]$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
#	.ethna
#	README.md
#	Readme.txt
#	app/
#	etc/
#	lib/
#	locale/
#	skel/
#	template/
#	www/
nothing added to commit but untracked files present (use "git add" to track)
●git 管理対象を追加
[taro@fitPC2i formmail]$ git add .
●サイン付きでコミット
[taro@fitPC2i formmail]$ git commit -m "Initial commit" -s -a
[master (root-commit) 0b98143] Initial commit
 43 files changed, 2798 insertions(+), 0 deletions(-)
 create mode 100644 .ethna
 create mode 100644 README.md
 create mode 100644 Readme.txt
 create mode 100644 app/Formmail_ActionClass.php
 create mode 100644 app/Formmail_ActionForm.php
 create mode 100644 app/Formmail_Controller.php
 create mode 100644 app/Formmail_Error.php
 create mode 100644 app/Formmail_UnitTestManager.php
 create mode 100644 app/Formmail_UrlHandler.php
 create mode 100644 app/Formmail_ViewClass.php
 create mode 100644 app/action/Clear.php
 create mode 100644 app/action/Confirm.php
 create mode 100644 app/action/Index.php
 create mode 100644 app/action/Send.php
 create mode 100644 app/plugin/Filter/Formmail_Plugin_Filter_ExecutionTime.php
 create mode 100644 app/view/Complete.php
 create mode 100644 app/view/Confirm.php
 create mode 100644 app/view/Form.php
 create mode 100644 app/view/Index.php
 create mode 100644 etc/formmail-ini.php
 create mode 100644 lib/googleAdsense.php
 create mode 100644 locale/ja_JP/LC_MESSAGES/ethna_sysmsg.ini
 create mode 100644 skel/skel.action.php
 create mode 100644 skel/skel.action_cli.php
 create mode 100644 skel/skel.action_test.php
 create mode 100644 skel/skel.app_object.php
 create mode 100644 skel/skel.entry_cli.php
 create mode 100644 skel/skel.entry_www.php
 create mode 100644 skel/skel.template.tpl
 create mode 100644 skel/skel.view.php
 create mode 100644 skel/skel.view_test.php
 create mode 100644 template/ja_JP/Complete.tpl
 create mode 100644 template/ja_JP/Confirm.tpl
 create mode 100644 template/ja_JP/Debug.tpl
 create mode 100644 template/ja_JP/Form.tpl
 create mode 100644 template/ja_JP/Index.tpl
 create mode 100644 template/ja_JP/mail/Mail.tpl
 create mode 100644 www/css/Common.css
 create mode 100644 www/css/Default.css
 create mode 100644 www/css/ethna.css
 create mode 100644 www/index.php
 create mode 100644 www/info.php
 create mode 100644 www/unittest.php
 create mode 100644 www/xmlrpc.php
[taro@fitPC2i formmail]$ git status
# On branch master
nothing to commit (working directory clean)
●公開先の Github を登録
[taro@fitPC2i formmail]$ git remote add origin git@github.com:remixgrjp/formmail.git
[taro@fitPC2i formmail]$ git config -l
user.name=remixgrjp
user.email=github.com@domain
color.ui=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@github.com:remixgrjp/formmail.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
●公開先の Github へ プッシュ
[taro@fitPC2i formmail]$ git push -u origin master
Counting objects: 62, done.
Compressing objects: 100% (53/53), done.
Writing objects: 100% (62/62), 27.55 KiB, done.
Total 62 (delta 8), reused 0 (delta 0)
To git@github.com:remixgrjp/formmail.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
これでローカル アプリケーションの Github へ公開完了。
https://github.com/remixgrjp/formmail

トラックバック

このエントリーのトラックバックURL:
https://www.remix.asia/cgi/mt/mt-tb.cgi/7017

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)