In a recent study Git, the concept of Git inside the tag is not very clear, so this question
My operation is done with the git command
I played two tag in master v - 0.2-0.1 and v, a push to the remote
First cloned code warehouse to local: git clone https://github.com/xxxxxxxx
Git checkout master but the default are master
Git tag - a v - 0.1 -
Git tag - a v - 0.2 -
Git push origin: refs/tags/v - 0.1
Git push origin: refs/tags/v - 0.2
Then create A branch A, and switch to the local branch of A
Git checkout - b - A
Push the local branches to A remote
Git push origin A
In the current branch is created on A two tag v - 0.4-0.3 and v and push to the remote
Git tag - a v - 0.3 -
Git tag - a v - 0.4 -
Git push origin: refs/tags/v - 0.3
Git push origin: refs/tags/v - 0.4
Finally found that I master branch and A branch has four tag v - 0.1 v - 0.2 v - 0.3 v - 0.4, but I hope is on the master branch is only 0.1 v, v - 0.2; A branch is only v - 0.3 v - 0.4; Because that's how I built, all I want to delete the branch on A v - 0.2-0.1 and v, only keep v - 0.4-0.3 and v, but oh my god, I found, delete the master branch of v - 0.2-0.1 and v were not found,
In other words,
1. When is to make the tag's branch, the tag is a snapshot of the global scope, a specific time point, at any time after I can use this tag to get at that time, the specific content of each branch, understand it, right?
2 if you can, a little bit more git inside of the tag and SVN inside their similarities and differences between the concept of the tag?
Thank you