I have three branches and I am working on one of them. I am changing the file, and I need to update this file in two other branches. Can I do this with Git or do I need to go to another branch and just copy and paste?
Thanks
I have three branches and I am working on one of them. I am changing the file, and I need to update this file in two other branches. Can I do this with Git or do I need to go to another branch and just copy and paste?
Thanks
 
    
    commit and push your changes in a single branch, and then create pull request for the other two branches on git (gitHub, gitLab.. etc) and merge it.
or use git merge for more info check git-merge
or use git rebase for more info check git-rebase
For futher details check the difference between the two merging-vs-rebasing
