Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.69 KB

contributing.md

File metadata and controls

64 lines (42 loc) · 1.69 KB

Contributing

This agreement is for collaboration, it may not be detailed enough, if it is not clear how to do what you want, this is a normal situation, just ask your colleagues.

Main flow

git clone git@github.com:midcontract/protocol.git midcontract-protocol
cd midcontract-protocol
git checkout -b name-of-feature origin/main

Coding and testing local see README.md Development

Git history: work log vs recipe https://www.bitsnbites.eu/git-history-work-log-vs-recipe/

Use Conventional Commits

git commit --message "feat: paypal payment for different users"

or

git commit --message "fix: hide password display when searching for a user"

Push and create merge requests

git push --set-upstream origin name-of-feature

Follow by link:

https://github.com/midcontract/protocol/pull/new/name-of-feature

Update branch from main

A tidy, linear Git history https://www.bitsnbites.eu/a-tidy-linear-git-history/

Get the latest upstream changes and update the working branch:

git fetch --prune origin
git rebase --autostash --ignore-date origin/main

During the rebase, there may be conflicts, they need to be resolved and after the decision to continue the rebase:

git rebase --continue

Upload the updated working branch to the repository, given that we changed the history, this should be done with the force option:

git push --force --set-upstream origin name-of-feature

More details can be found in the tutorial: git rebase.