Git积累
Git采用ssh连接里有时ssh的端口并不是默认值,这个时候需要在本地用户的 ~/.ssh/config 中加入下面的信息:
Host xxx.xxx.xxx.xxxPort xxxx
fatal: bad default revision 'HEAD'
git push origin v1.5或者分享所有taggit push origin --tags
通过git clone获取的远端git库,只包含了远端git库的当前工作分支。如果想获取其它分支信息,需要使用”git branch –r” 来查看,如果需要将远程的其它分支代码也获取过来,可以使用命令” git checkout -b 本地分支名 远程分支名”,其中,远程分支名为git branch –r所列出的分支名, 一般是诸如“origin/分支名”的样子。如果本地分支名已经存在, 则不需要“-b”参数。
git checkout -b testing 9239333xxxxxxxxx