23 August 2017
These are the typical Git commands a developer would use in a bread-and-butter daily scenario through the development lifecycle.
Create "feature" branch
We are creating a new branch called "myBranch123" this branch will contain all our commits for this feature:
git checkout -b myBranch123
add changes
make changes to the code and add them:
git add --all
commit
git commit -m "my commit message"
push new branch to origin
git push origin myBranch123
create a PR request or merge manually
create a PR request for your branch to be merged into the "develop" branch
or:
git checkout develop
git merge myBranch123
git push
delete feature branch from origin
git push origin --delete myBranch123
delete feature branch from local
git branch -d myBranch123