I’m having a blast learning Ruby and Rails right now.
I’m building a site as a learning exercise, but I decided to learn by building the Maintenance App that I previously wrote about.
Here are also a few git commands that I’ve been using. I doubt that I’ll forget these anytime soon, but this might still be a handy reference for me in the future:
Reorient by getting the latest info from GitHub and looking at the branches and status I’m working with locally
Start a new feature branch and commit to it
git checkout -b feature_branch_name
git commit -a -m "Describe changes made in committed changes"
Rebase before pushing to GitHub (to create or update a Pull Request)
git pull origin
git rebase origin/master
. . .
git add .
git rebase --continue
. . .
git push origin --force
Abort a rebase if I messed up
git rebase --abort
Wipe my local changes and go back to the feature branch on GitHub
git reset --hard origin/feature_branch_name
Closing out a feature branch after it has been merged in GitHub
git checkout master
git branch -d feature_branch_name