Skip to main content
Fixed malapropism in title
Link
michaelmichael
  • 14.3k
  • 7
  • 56
  • 61

Git - move brunchbranch to master

I have a brunchbranch with actual sources and. I did not make any commits for a long time to master, and at the moment it's completely unactualout of date. I want to just replace master's content with the content of my brunchbranch. The simpleOne way to do it is to checkout both branch and master, delete master's content and copy content from branch to master, and after that push result to master.

It works, but I believe there is has to be some git'sgit command to do it in the simplea simpler way.

Does anybody know how to do it?

I have a brunch with actual sources and. I did not make any commits for a long time to master and at the moment it's completely unactual. I want just replace master's content with content of my brunch. The simple way to do it checkout both branch and master, delete master's content and copy content from branch to master and after that push result to master.

It works but I believe there is has to be some git's command to do it in the simple way.

Does anybody know how to do it?

I have a branch with actual sources and I did not make any commits for a long time to master, and at the moment it's completely out of date. I want to just replace master's content with the content of my branch. One way to do it is to checkout both branch and master, delete master's content and copy content from branch to master, and after that push result to master.

It works, but I believe there has to be some git command to do it in a simpler way.

Does anybody know how to do it?

Rollback to Revision 2
Source Link
CharlesB
  • 91.2k
  • 29
  • 203
  • 228

Git - move branchbrunch to master

I have a branchbrunch with actual sources and. I did not make any commits for a long time to master and at the moment it's completely out of dateunactual. I want just replace master's content with content of my brunch. The simple way to do it checkout both branch and master, delete master's content and copy content from branch to master and after that push result to master.

It works but I believe there is has to be some git's command to do it in the simple way.

Does anybody know how to do it?

Git - move branch to master

I have a branch with actual sources and I did not make any commits for a long time to master and at the moment it's completely out of date. I want just replace master's content with content of my brunch. The simple way to do it checkout both branch and master, delete master's content and copy content from branch to master and after that push result to master.

It works but I believe there is has to be some git's command to do it in the simple way.

Does anybody know how to do it?

Git - move brunch to master

I have a brunch with actual sources and. I did not make any commits for a long time to master and at the moment it's completely unactual. I want just replace master's content with content of my brunch. The simple way to do it checkout both branch and master, delete master's content and copy content from branch to master and after that push result to master.

It works but I believe there is has to be some git's command to do it in the simple way.

Does anybody know how to do it?

edited tags, fixed "brunch" references and replaced "unactual" which isn't a word and didn't make sense
Source Link
Loading
edited tags
Link
Chris Benard
  • 3.2k
  • 2
  • 30
  • 35
Loading
Source Link
Loading