{"image_url":null,"provider_name":"Hatena Blog","author_name":"shigemk2","provider_url":"https://hatena.blog","type":"rich","title":"oh-my-zsh\u306eggpull","url":"https://www.shigemk2.com/entry/20130724/1374639085","height":"190","published":"2013-07-24 13:11:25","categories":["Git","zsh"],"width":"100%","blog_url":"https://www.shigemk2.com/","author_url":"https://blog.hatena.ne.jp/shigemk2/","blog_title":"by shigemk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130724%2F1374639085\" title=\"oh-my-zsh\u306eggpull - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u30c7\u30a7\u30a7\u30a7\u30f3 # # Will return the current branch name # Usage example: git pull origin $(current_branch) # function current_branch() { ref=$(git symbolic-ref HEAD 2> /dev/null) || \\ ref=$(git rev-parse --short HEAD 2> /dev/null) || return echo ${ref#refs/heads/} } # these aliases take advantage of the previ\u2026","version":"1.0"}