-
Notifications
You must be signed in to change notification settings - Fork 105
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
Increase app version with every git commit #54
Comments
This is exactly what it should show, unless you configure it to be used with |
On version 1.0 absorb is the way to go, you just have to run:
|
There is a problem, in my project the I put the But when i commit some code, the Is there any way to refresh the version but not update @antonioribeiro thx $ git status
On branch develop
Your branch is ahead of 'origin/develop' by 2 commits.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: config/version.yml
no changes added to commit (use "git add" and/or "git commit -a") |
The version is stored in this file. I cannot find a way to securely store the version in a different way than in a file. So, if you If that's a problem for you and your deployment uses git to pull new versions, you can probably execute it it in the server, but to cleanup the directory before a new pull, you would probably have to do something like:
|
This tips so helpful for me, thanks! |
In case when use git version: First run read the version info from git-local or git-remote, and save the current version information to the Will this flow is better? |
I'm using post-hook on me server to run commands as i push. I get this error: |
I finally settled with adding |
I want assign the commit counts to patch number where:
git describe > v1.5.0-3-g41abd80
currently when running
php artisan version:show
the result is: version 1.5.0 (build 41abd8)I want the result to be version 1.5.3 (build 41abd8) where patch number equals to commit counts.
The text was updated successfully, but these errors were encountered: