Skip to content

Steps 10&11 for cleaning and updating remote and local repos #202

@sankaest

Description

@sankaest

I am really thankful for this tool, what definitely simplify help in development of Yii3 for those who are not so familiar with git concept and working in a big team.

But it would help a lot if additional steps will be added or at least some words in readme file, if those steps are not needed:
Step 10. Clean up after pull-request is merged.
As I understand, branch is not needed any more after PR is merged. While trying to delete the branch (from dev/...):
git branch -d branch-name-to-be-deleted
I get response:

error: The branch 'branch-name-to-be-deleted' is not fully merged.
If you are sure you want to delete it, run 'git branch -D branch-name-to-be-deleted' 

What is wrong? Some web sites suggest to make: git remote prune origin, but result is the same.

Step 11. Updating remote and local repositories after PR is merged
Another question I could not find an answer. Is it needed to update remote and local repositories? If I am working on new feature and create new branch, it has to be hand-in-hand with main repository? How will I update remote and local repositories?

I would be very appreciated if someone could clarify those steps and write some git code, what shall I run directly in dev/... repository. Otherwise next branch will be a nightmare for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions