I am trying to start to work with Git in my new project. I know the workflow and git processes.
This is my scenario and my doubt.
- Create a new project in Sublime-Mavensmate and initialize Git.
- Create an apex class 'Test', add and commit to git (version 1). Cmd + S and then autosave in my salesforce sandbox org.
- Modify this apex class 'Test', add and commit to git (version 2). Cmd +S and autosave in sandbox org.
- With Git I rollback to version 1 and then open sublime Text. I can watch the version 1 of my apex class but in my org I have the version 2. If I use 'Refresh from server' I loss my version 1.
What is the procedure to sincronize this process? In this case is only one class but could be more.