There is no tracking information for the current branch

Source: Internet
Author: User

There is no tracking information for the current branch.

Please specify which branch your want to the merge with.

See Git-pull (1) for details

Git pull <remote> <branch>

If wish to set tracking information for this branch

Git branch--set-upstream Master origin/<branch>

Seeing a second hint, we now know a solution. That is, specify the current working directory work branch, with the remote warehouse, the link between the branches.

For example, we set master to correspond to the remote repository's master branch

Git branch--set-upstream Master origin/master

This way, whenever we want to push or pull, we just need to enter a git push or git pull.

Prior to this, we had to specify the remote branch that you want to push or pull.

Git push Origin Master

Git pull Origin master.

There is no tracking information for the current 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.