Git Workflow Ripest Tomatoes.
- Grab the SSH url at the ripest tomatoes github repo
- Enter
git clone <the_ssh_url>in yourdevdirectory cdinto the rails project and create a new branch branch withgit branch <yourname>- Switch to your newly created branch
git checkout <yourname> - Do work.
- When teammates tell you they've pushed working changes to master,
git checkout masterand pull from origin. git checkout <yourname>git rebase master
Steps for pushing your changes to the God repo:
The app is called 'your_app' and the user's name is 'jenny'
~/dev/your_app on jenny[!]
git add .
~/dev/your_app on jenny[+]
git commit -m “made some changes”
~/dev/your_app on jenny
git checkout master
~/dev/your_app on master
git pull origin master
~/dev/your_app on master
git checkout jenny
~/dev/your_app on jenny
git rebase master
~/dev/your_app on jenny
git checkout master
~/dev/your_app on master
git merge jenny
~/dev/your_app on master
git push origin master