In my current project all the team members are new to Git where recently we got some collaboration scenarios during development.
My question is if multiple team members works on a project where each developers (in this scenario Developer 1 & 2) has created their local feature branches in local.
However there is a dependency on each others module.
To get the latest code of Developer 1 code to Developer 2 machine is the approach would be to push the feature branch of Developer 1 to GitHub remote so Developer 2 can fetch the latest code of Developer 1 and after the changes push the Developer 2 branch to master for merge?
Please let me know if there is any best practice around this.