LoginSignup
1
1

More than 5 years have passed since last update.

GitHubでforkしたときのこと

Posted at

単なるメモです

ほんと単なるメモですごめんなさい。
forkした後の元との同期のこと

作業

forkする

元プロジェクトのページのどこかにforkのボタンがあるのでそこから。

cloneする

fork後の自分のプロジェクトのページの右にclone用のリンクがあるのでcloneして、branch作ります。

git clone xxx:xxx
git checkout -b editing

元に合わせる

元プロジェクトをリモート登録し、持ってきて登録してbranch切り替えます。

cd xxx
git remote add upstream yyy:yyy
git checkout master
git pull upstream master
git push origin master
git checkout editing

pull requestする

#実はやったことないので、こうらしい、ということで。

変更してコミットしてほしい、ということを知らせるっぽい?

git commit -a -m 'foo bar'
git push origin editing

自分のプロジェクトでeditingのブランチを表示して、どこかにあるpull requestのボタンを押して完了、のようです。
また今度やってみようかと。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1