Skip to content

Instantly share code, notes, and snippets.

@aliceinwire
Last active October 23, 2016 05:23
Show Gist options
  • Save aliceinwire/a6c7b4cba347a1cc2849280ebd0c7a55 to your computer and use it in GitHub Desktop.
Save aliceinwire/a6c7b4cba347a1cc2849280ebd0c7a55 to your computer and use it in GitHub Desktop.
gentoo pull request 方法
#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 git@github.com: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