Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
1–10 of 26 posts
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#2Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#3I'm confused. How is that different from 'git status'?
But everyone’s workflow is different. The author maybe should have added a reason why he uses that instead of git status
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#4I'm confused. How is that different from 'git status'?
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#5I'm confused. How is that different from 'git status'?
Well, git status doesn’t show unpushed changes from other branches but when I deploy, I normally go into the deployment branch and run git status there. So the unpushed changes in other branches would be quite insignificant. But everyone’s workflow is different. The author maybe should have added a reason why he uses that instead of git status
Seems unusual that all branches are involved in deployment though. Isn't the typical workflow that only one branch get's deployed to the user facing machine?
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#6I'm confused. How is that different from 'git status'?
It first performs a git status, then fetches changes from upstream, and checks if all local changes have been pushed upstream (using git cherry).
My workflow looks like this:
A feature branch is mature enough to get merged into master. So I merge it into master on the staging server. And then push it to the public server.
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#7Earlier quoted context omitted.
It first performs a git status, then fetches changes from upstream, and checks if all local changes have been pushed upstream (using git cherry).
I'm curious what the workflow is here. My workflow looks like this: A feature branch is mature enough to get merged into master. So I merge it into master on the staging server. And then push it to the public server.
Re: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#8 . "$(git --exec-path)/git-sh-setup"
require_clean_work_tree "bump" "Please commit or stash them."
https://git-scm.com/docs/git-sh-setupRe: Show HN: Git-Ready to Deploy? Check for uncommitted and non-pushed changes
#9Do you know about `git-sh-setup`? As in: . "$(git --exec-path)/git-sh-setup" require_clean_work_tree "bump" "Please commit or stash them." https://git-scm.com/docs/git-sh-setup
But no, I did not know of git-sh-setup, thanks for the tip :-)