Last active
October 23, 2016 05:23
-
-
Save aliceinwire/a6c7b4cba347a1cc2849280ebd0c7a55 to your computer and use it in GitHub Desktop.
gentoo pull request 方法
This file contains hidden or 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
#PySocksのパッケージをアップデートするコントリビューションの例です。 | |
# gentooのgithubにあるパッケージレポジトリをフォックします。 | |
#gitでクローンします。 | |
git clone --depth=50 https://github.com/aliceinwire/gentoo.git aliceinwire_gentoo | |
#レポジトリに入ります。 | |
cd aliceinwire_gentoo | |
#upstreamレポジトリ追加します。 | |
git remote -v | |
git remote add upstream [email protected]:gentoo/gentoo.git | |
git remote -v | |
#レポジトリをアップデートします。 | |
git pull upstream master --depth=50 | |
プッシュモードを簡単に設定します。 | |
git config --global push.default simple | |
ブランチを変わります。 | |
git branch | |
git branch PySocks | |
アップデートしたいパッケージのフォルダに入ります。 | |
cd dev-python/PySocks | |
ファイルの名前は新しいバージョンにリネームします。 | |
cp PySocks-1.5.6.ebuild PySocks-1.5.7.ebuild | |
ファイルのhashを作ります。 | |
repoman manifest | |
パッケージをテストします。 | |
ebuild PySocks-1.5.7.ebuild test | |
gitに追加します。 | |
git add PySocks-1.5.7.ebuild | |
パッケージをチェックします。 | |
repoman -dx full | |
gitにコミットします。 | |
repoman -dx commit | |
git remote -v | |
フォックしたgitにプッシュします。 | |
git push --set-upstream origin PySocks | |
git push | |
git checkout master | |
git pull upstream master --depth=50 | |
終わり |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment