Git submit specified Commit Id approach

    Last week, in doing the project, modifying a string of time, because there is no pull to the latest code and then was modified, resulting in problems when submitted, easily pull a bit on the revised code, there have been found of a merge commit, but did not merge in order to submit to the branch this one commit, go online to find a way:

Summed up:

// create a new branch (tmp front branch, the corresponding distal branches F901_Android_Base_MEA) 
Git Checkout -b F901_Android_Base_MEA_temp Origin / F901_Android_Base_MEA 

// use the new branch out over the modification commit saved (cbf0d6 corresponds modify the string corresponding commitid) 
Git Pick-cbf0d6ee8de4328b3f6fefa9dfcd9843e4f088dd Cherry 

// temporary branch to the Push server branch 
git push origin F901_Android_Base_MEA_temp: F901_Android_Base_MEA

  Reference link: https: //www.cnblogs.com/zndxall/p/9505446.html

Guess you like

Origin www.cnblogs.com/linux0537/p/10929303.html