On master:
git pull origin master
bundle install
rails db:migrate
git pull origin master
git checkout -b NEW_BRANCH_NAME
On the branch you want to rename :
git branch -m BRANCH_NAME
git add .
git commit -m "MESSAGE"
git push origin BRANCH_NAME
In case of conflict on github, talk to your team to solve it.
git add .
git commit -m "MESSAGE"
git checkout master
git pull origin master
git checkout BRANCH_NAME
git merge master
In case of conflict use git status
to see conlicting files.
On master:
git pull origin master
git sweep
On master:
git branch BRANCH_NAME
git checkout BRANCH_NAME
git pull origin BANCH_NAME