clone到private repo的解决办法一:
在https里面插入用户名和密码
$ git clone https://[username]:[code]@github.com/XXX.git
但是,push没有地方插,error:
$ git push
remote: Repository not found.
fatal: repository 'https://XXX.git/' not found
所以,不如按照帮助执行,最后输入:
$ git credential-osxkeychain erase
host=github.com
protocol=https
这样clone跟push都可以搞定了。
另,如何tag,都在使用说明里。主要语句:
$ git tag <tag>
$ git push origin <tag>
$ git checkout <tag>
换回到master的branch:
$ git checkout master