{"version":"1.0","published":"2010-07-30 23:07:37","author_url":"https://blog.hatena.ne.jp/hitode909/","categories":[],"height":"190","type":"rich","provider_url":"https://hatena.blog","title":" git current-branch\u3063\u3066\u3044\u3046alias\u3092\u8003\u3048\u305f","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.sushi.money%2Fentry%2F20100730%2F1280498857\" title=\" git current-branch\u3063\u3066\u3044\u3046alias\u3092\u8003\u3048\u305f - hitode909\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blog.sushi.money/entry/20100730/1280498857","image_url":null,"width":"100%","blog_title":"hitode909\u306e\u65e5\u8a18","blog_url":"https://blog.sushi.money/","description":"Git\u3067\uff0c\u3044\u307e\u3069\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u30b3\u30d4\u30fc\u306a\u3069\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u306e\u3067\uff0calias\u3092\u4f5c\u3063\u305f\uff0e ~/.gitconfig\u306e[alias]\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3059\u308b\uff0e current-branch = \"!sh -c \\\"git branch | grep '*' | awk '{ print \\\\$2 }' \\\"\" git current-branch\u3059\u308b\u3068\uff0c\u3044\u307echeckout\u3057\u3066\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u8868\u793a\u3059\u308b\uff0e % git checkout master Switched to branch 'master' % git current-branch master % git checkout kuruku\u2026","provider_name":"Hatena Blog","author_name":"hitode909"}