-
Notifications
You must be signed in to change notification settings - Fork 41
Workflow
sfloess edited this page Mar 5, 2013
·
2 revisions
This workflow will keep your git repo clean and will make your life a lot easier for teams with multiple users. We recommend that each developer have their own developer sandbox that they do their development on. Then the code is pushed to a central full sandbox for testing. This pushing can be done via Jenkins with the aid of Solenopsis.
- Get the most recent code from the git repo
git pull
- Push this code to your sandbox
solenopsis destructive-push
- Create a private feature branch
git checkout -b mynewfeature
- Do work locally and push solenopsis push (the command
solenopsis git-push
can be used for faster deployment of apex/VF code - Fetch work that was done in config from salesforce
solenopsis pull-full-to-master
- Commit work to private feature branch
git commit -a -m "My feature"
- See if there are any updates in the master branch
git checkout master
git pull
- If there are changes since the last time you pulled, rebase and resolve issues
git checkout mynewfeature
git rebase master
- After changes are resolved merge your code into master
git checkout master
git merge --squash mynewfeature
- Commit your changes
git commit
- Push changes to master
git push
- Delete your feature branch
git branch -D mynewfeature