Created
May 16, 2011 09:27
-
-
Save hidenorigoto/974142 to your computer and use it in GitHub Desktop.
sfjp-doc-mainを最新にする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 多分一度cloneし直したほうが早いので、作業したファイルをどこかにバックアップ | |
# その後 git://github.com/hidenorigoto/sfjp-doc-main.git を clone | |
git clone git://github.com/hidenorigoto/sfjp-doc-main.git | |
# sfjp-doc-mainディレクトリに移動してブランチを作成 | |
git checkout -b translate-awos-228 | |
# バックアップしたファイルを追加して、add → commit | |
git add . | |
git commit | |
# このブランチをGitHubの自分のリポジトリ(フォークしたもの)へpush | |
git remote add ganchiku [email protected]:ganchiku/sfjp-doc-main.git | |
git push ganchiku translate-awos-228 | |
# この後、GitHub上のページでブランチを選んでから pull request送信 | |
# 2回目の別の翻訳作業を開始する場合 | |
# まず master ブランチに戻り、最新版にする | |
git checkout master | |
git pull --rebase | |
# 新しい翻訳作業用にブランチを作成して作業する | |
git checkout -b translate-awos-XXX | |
# このように、作業は必ずブランチで行い、masterにはコミットしないようにしておくことで、任意のタイミングで GitHub 上の master をローカルに取り込みやすくなります。 | |
Author
hidenorigoto
commented
May 16, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment