以sofu580 1.0.5版本发布为例,当本地调测都通过且push到git后,可把git上代码打标签,用户版本回溯记录。
apple-MacB:soufu580-app apple$ git tag -a v1.0.5
apple-MacB:soufu580-app apple$
apple-MacB:soufu580-app apple$ git push origin v1.0.5:v1.0.5
Counting objects: 1, done.
Writing objects: 100% (1/1), 155 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://git.oschina.net/vidy/soufu580-app.git
原文:http://www.cnblogs.com/wolfcamel/p/4302412.html