LoginSignup
0
0

More than 5 years have passed since last update.

うるせえな、forkするんだよ

Last updated at Posted at 2016-10-12

持ってきたいリポジトリをforkしてcloneする
cloneしたリポジトリの直下に移動

$ git remote add upstream git:github.com<owner>/<repo_name>.git
$ git fetch upstream
# git branch -a
# 欲しいbranchをlocalに持ってきてチェックアウトする
$ git checkout -b new_branch_name upstream/remote_branch_name

後はいつもと同じ様にaddしてcommitするなりfetchしてmergeするなりしてください.

$ git pull --rebase args1 args2

rebaseが結構好きだったんですが、綺麗になりすぎる。
コードレビューをしてもらう時は merge 使う方がイイです

人の気持ちを考えましょう

$ git remote rm <repository_name>
0
0
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
0
0