Our git repo is hosted thru github, https://github.com/webstreak .
Standard branch structure is as follows:
-
production -> production branch.
-
master -> tested, production ready, validated on integration branch.
http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html
git clone repo-path
Branch name should correspond to feature name/description.
git checkout -b "featurename"
Commit messages should be short and describe what the commit actually does. Uppercase first word.
git add .
git commit -am "Fix bug in things controller"
git checkout master
git pull #if you have forked the repo, pull upstream master
git merge featurename
git push
7. If there are changes you need to rebase them. [Why?] (https://www.derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/)
git checkout featurename
git rebase master
git rebase --continue
git checkout master
git merge featurebranch
git push
https://help.github.com/articles/creating-a-pull-request/
git clone repo-path
Branch name should correspond to feature name/description.
git checkout -b "featurename"
Commit messages should be short and describe what the commit actually does. Uppercase first word.
git add .
git commit -am "Fix bug in things controller"
git checkout master
git pull #if you have forked the repo, pull upstream master
git merge featurename
git push
6. If there are changes you need to rebase them. [Why?] (https://www.derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/)
git checkout featurename
git rebase master
git rebase --continue
git checkout master
git merge featurebranch
git push