Skip to content

Instantly share code, notes, and snippets.

@kemsakurai
Last active January 22, 2017 08:06
Show Gist options
  • Save kemsakurai/e6a04e124e1771e3e92f863ebbd27229 to your computer and use it in GitHub Desktop.
Save kemsakurai/e6a04e124e1771e3e92f863ebbd27229 to your computer and use it in GitHub Desktop.
GIthub Repository フォーク後、PullRequest作成までに実行するコマンドのメモ書き

Github の repository folk 後に、打つコマンド

remote リポジトリを upsteam ブランチとして追加

git remote add upstream git://git.apache.org/wicket.git

ブランチのリスト取得 upstream が作成されたことを確認

git branch -a

開発ブランチ作成

git branch development

開発ブランチ切り替え

git checkout development

リモートmaterの変更に追従

git fetch upstream
git merge upstream/master

開発ブランチのソースをローカルmasterにマージ

git checkout master
git merge --squash development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment