-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what do you think about versioning with "git tag" instead of brancing like v1.5.5 etc. #398
Comments
i have no idea how to do this |
I found this page useful for Tags |
First of all, you can create a tag when you change a version with following codes.
After that, You can commit with default way.
Then, you can create a new tag with same way when the version will changed. |
if you want to send a commit specific tag ot project, you can use following codes :
it is not easy, but I think it can be done. |
i don;t use command line |
me neither for the most part i use git for windows from the git homepage It has a powershell tool built-in which can be used for little things like adding tags, updating forked repos from the original |
I vote for "hkulekci" suggestion. Tagging should be used instead of branching when releasing a new version. I just learned the difference of tagging and branching here: http://stackoverflow.com/questions/1457103/what-is-the-difference-between-a-tag-and-a-branch-in-git . |
I don't see how this is feasible when features and bug fixes are developed concurrently. |
the project version is change if someone change something on v1.5.5 version as v1.5.5.1 or v1.5.5.2,... etc. For example, you create a tag as 1.5.5. after that you change something and you want to add some other commits to v1.5.5. You should either create v1.5.5.1 tag of project or remove v1.5.5 tag and create again with new commit. I think second one is not recommended. Because puspose of version control system show all revison and version changes of projects. if i use v1.5.5 on my project or what ever, i see v1.5.5.1 and open it and i can see what is the changes. This method will make it easier to write changelog. |
At the time 1.5.5.1 was released, a new tag should have been set A new branch 'called 'development' created to add new features for the next version Any bugfixes to 1.5.5.1 should have meant a new point release 1.5.5.2 etc and new tags for each point release on the master Once development on new features in the development branch are complete, merge develpment branch with master and set new tag on master for 1.5.6 or 1.6 or whatever - Master should now contain all bugfixes and new features delete development branch create new developemnt branch from master |
And what value is all this extra work adding over simple branching? |
Because all changes is merged when branch was delete. Version differences can be found only changelogs. For example, i dont know what the real difference is between v1.5.5 and v1.5.5.1. |
You can still tag within a branch I'm sure. I just don't see the value in replacing branches completely. How would you fix a bug in a previous release that isn't found in the current version, for instance? |
i think this conversation is not required. i do not know how to add tags and can see nothing on tortoise git about them. |
In TortoiseGit context menu:
Tag is a simple bookmark in the history. And as a bonus it allows have easy download for bookmarked version. |
This might be helpful. |
@Ictinus: thanks for the link - nice article. After all i have learned about Git, I personally would say, tagging is the "correct" way to mark a version / release. Tagging is for versions, branching for development :) |
A tag points to a single commit and should be consistently named. Branches often contain the history of commits regarding a specific topic (could be a major feature or a release preparation) that cannot be developed concurrently with the trunk code (which in this case is Hope that helps :) |
Tagging is for versions, branching for development ++ |
I think, "git tag" can be used to save all versions of project instead of branching like v1.5.5.1 or v1.5.5 etc. All versions can be downloadable from website but this method is more comparable instead of downlad from website. Website can be linked to directly github tag for following versions. Maybe, it is more complex for manager but some versions are stable and developers can see all versions to download. These stable versions can be controlled and some critical version bugs can be fixed from tags.
What do you think about this situation?
Examples some open source projects are forked a lot :
https://github.com/twitter/bootstrap/tags
https://github.com/pokeb/asi-http-request/tags
https://github.com/henon/GitSharp/tags
The text was updated successfully, but these errors were encountered: