I have a master branch where my master-app is.
I am expanding the app with a webshop module on top of the master-app.
When i do changes to the master app, i want them to also be in the webshop-app?
When i now do git checkout webshop, the changes i made to master are lost, and i have to copy past them into webshop.
What i do now:
git checkout master
git add .
git commit -m "changes made to master application"
git push origin master
git checkout webshop
// copy and paste my changes here
git add .
git commit -m "Changes also made here"
git push origin webshop
I tried this:
git push origin master webshop
But this is only pushing for the commit in the branch i am in atm