MAKE GIT PUSH AND PULL TO THE CURRENT BRANCH BY DEFAULT¶
git config --global push.default current
git config --global pull.default current
git tag¶
$ git tag -a v1.4 -m 'my version 1.4'
$ git tag
v0.1
v1.3
v1.4
$ git show v1.4
tag v1.4
Tagger: Ben Straub <ben@straub.cc>
Date: Sat May 3 20:19:12 2014 -0700
my version 1.4
commit ca82a6dff817ec66f44342007202690a93763949
Author: Scott Chacon <schacon@gee-mail.com>
Date: Mon Mar 17 21:52:11 2008 -0700
changed the version number
$ git push origin v1.5
$ git checkout -b version2 v2.0.0
Switched to a new branch 'version2'