Categories
Links

Cool Links!

djamware : This guy has an awesome example on sequelize, postgres and a wonderful controller/model setup.

 

Categories
Git

Git change branch name

Very cool.  I created a branch to work on one feature and did something completely different. Going to rename branch and and blow away branch on remote


git branch -m old_branch new_branch         # Rename branch locally    

git push origin :old_branch                 # Delete the old branch    

git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

Thanks to https://www.w3docs.com/snippets/git/how-to-rename-git-local-and-remote-branches.html for this one!