Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

gitのブランチ移動

More than 5 years have passed since last update.

cd - のように,引数に-を指定すると直前にいたブランチに戻れる

追記:
git co master && git merge - みたいな使い方もできる.便利.
http://twitter.com/#!/jch2355/status/131665048170008576

git co master
git co some-feature
git co - # => masterに移動
git co - # => some-featureに移動
yaotti
Qiitaを作っているIncrements株式会社の創業者
http://yaotti.hatenablog.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away