(any_branch)
git checkout dev
(dev)
git pull
(dev)
git checkout -b USxxx_descr
#create new branch for the US ...- do your changes
(USxxx_descr)
git add (file) (file) (etc...)
orgit add --all
(USxxx_descr)
git status
check that everything is correct (only files you really want to change are added)(USxxx_descr)
git diff --cached
review the differences and ensure that nothing was changed by accident- correct anything identified, remove debug/test/temporary code etc.. then
add
/status
/diff
until all is good (USxxx_descr)
`git commit -m "comment" .... repeat, etc...- all good to send off? ok:
(USxxx_descr)
git checkout dev
(dev)
git pull
#if you get any conflict message, STOP and ask for help(dev)
git checkout USxxx_descr
#back to your branch with changes(USxxx_descr)
git rebase dev
#do the rebase to bring changes from dev to your branch and replicate your changes as if they were new- Check rebase results: if it was automatic, ok; otherwise you need to treat it. Look at
git status
and the branch name to see if there's anything out of place - .... treat conflicts of the rebase (opening each file that shows up in
git status
and sorting out conflicts, then I don't remmeber if it'scommit
irrebase continue
... let's see when it happend :D) (USxxx_descr)
git push
#try to push, git will tell you that it needs to be forced (if it says something else, STOP and ask for help)- run the forced push that git sugests (if it's not suggesting a forced commit, STOP and ask for help)
(USxxx_descr)
git checkout dev
orgit checkout -b USxxx_otherUS
#go back to dev or create a new branch from this one if you need these changes for the next US- Use the online tools (eg. GitHub/Git Lab) to create and process a pull request from
USxxx_descr
todev
Last active
September 2, 2020 07:54
-
-
Save RS-DU34/6676fdca2409b54acce8171bd77ae51e to your computer and use it in GitHub Desktop.
Pretty safe and solid git flow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment