Git merges local code to branch

Source: Internet
Author: User

Local code merge to Dev branch

Submit in local branch
git Add.
Git commit-m "Playbuy"

Switch to Dev Branch
git checkout Dev
Git pull
Merging branches
Git merge local (dev merge to the HF branch, the need to add-noff parameters, is to prevent first to merge the policy, do not need the next step git rebase, because Dev and HF belong to the online version, need to preserve the empty merge version to know the merged node, The local does not need to be retained )

git rebase removing the merge empty version
Git push Origin Dev

The above is just my use of

The detailed article has the http://blog.csdn.net/hudashi/article/details/7668798, the first to wait to have the free to study under

Git merges local code to branch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.