At work, each developer has his own development branch we work off of, ie. branch = dev_name_of_employee. IE. dev_jon
dev_jon has a new feature with over 100 commits in it that is not ready to be tested or deployed, so I created another branch to put that new feature in called staging_jon (could have called it holding_jon, whatever).
Now I need to start on another feature and have dev_jon contain the contents of master. Kind of a revert back to master thing.
How can I do this without deleting dev_jon and its remote branch, then recreating it from master? I cant stage all these changes because they are already pushed.
Or is there just a better way to have each employee work on his/her own consistant branch during development?
In dev_jon, you can do:
git reset --hard master
May not be directly applicable / relevant, but you can look at GitHub flow: http://scottchacon.com/2011/08/31/github-flow.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With