Beta Releases to Apple and Amazon
- In LT-HRMS we are ready with features and we are giving a test release to our qa team and when that is successful, we will give beta releases to aplle and amazon.
- When we give new releases to the qa or customers we will continue working, To make this happen, Organizations follow two approaches
- Create a branch for every release (Release Branches)
- Many version control systems supports tags or label. Git also does that.
- Create a branch for every release (Release Branches)
- A Tag points to specific repositories history which is important
git tag
- Git has two types of tags
- Light weighted:
- Is a pointer to a specific commit
- Create:
git tag <tag_name>
- Annotated:
- Annotated are stored as full objects in git database.
- Create
git tag -a <tag_name> -m "tag_message"
- Light weighted:
- Pushing Tags to server
# Push specific tag
git tag <remote-name> <tag-name>
# push all the tags
git push <remote-name> --tags
Editing Commit History
- Now let us work on apple branch and create 5 commits
- Now your are asked combine c1 and c2 as one commit "c1.1" (Squash)
- Lets rebase interactively
git rebase -i HEAD~5
- Now lets drop/delete c3 commit, again interactive rebase
- If you push the changes to remote repo after changing history your push will be failed. You might need necessary permissions to do force push
git push --force origin apple