2017-05-02  mastodon  git 

ローカルブランチを作ってリモートにプッシュ

ローカルブランチを確認

$ git branch
* master

リモートも含めてすべてのブランチを確認

$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/feature-account-domain-blocks
  remotes/origin/feature-oembed
  remotes/origin/feature-trademark
  remotes/origin/master
  remotes/origin/skylight
  remotes/upstream/ashfurrow-patch-1
  remotes/upstream/feature-account-domain-blocks
  remotes/upstream/feature-trademark
  remotes/upstream/feature-webpack
  remotes/upstream/master
  remotes/upstream/skylight

ブランチを作成、確認、チェックアウト

$ git branch social.hyuki.net

$ git branch
* master
  social.hyuki.net

$ git checkout social.hyuki.net
Switched to branch 'social.hyuki.net'

$ git branch
  master
* social.hyuki.net

$ git status
On branch social.hyuki.net

ブランチをoriginにpushしてリモートブランチを確認

$ git push origin social.hyuki.net
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:hyuki0000/mastodon.git
 * [new branch]      social.hyuki.net -> social.hyuki.net

$ git branch -a
  master
* social.hyuki.net
  remotes/origin/HEAD -> origin/master
  remotes/origin/feature-account-domain-blocks
  remotes/origin/feature-oembed
  remotes/origin/feature-trademark
  remotes/origin/master
  remotes/origin/skylight
  remotes/origin/social.hyuki.net
  remotes/upstream/ashfurrow-patch-1
  remotes/upstream/feature-account-domain-blocks
  remotes/upstream/feature-trademark
  remotes/upstream/feature-webpack
  remotes/upstream/master
  remotes/upstream/skylight
 2017-05-02  mastodon  git