I have a question regarding git. I first have a master branch, based on which i created a working branch called feature; we normally send pull request to merge the changes in feature branch to master branch. But then the team has renamed master branch to main, how should i deal with my feature branch, in order to sync with the new main branch and later pull request to merge the changes in feature to main branch instead of master branch.

Here is some suggestions to do this:
1. First create a local “feature” branch from the remote “feature” branch
		git branch -u origin/feature feature
2. Merge the local “main” branch to the local feature branch
		git checkout feature
		git merge main
3. Resolve any conflicts, sync feature with main
4. Commit and push to remote feature
5. Create a pull request to merge from remote feature branch to remote main branch