An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
September 16, 2022 12:43 pm GMT
Original Link: https://dev.to/edsonjuniornarvaes/map-the-branch-4fm9
Map the branch
Check for the existence of a branch mapping, the following warning will appear if the mapping does not exist.
There is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull (1) for details. git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to = origin / <branch> branchname
Checkout the branch where you want to create the mapping.
git checkout branchname
Tell the upstream which branch is mapping.
git branch --set-upstream-to = origin / branchname branchname
From now on, instead of always informing the origin such as: git pull origin master, you will only request: git pull, as the branch is already mapped
Original Link: https://dev.to/edsonjuniornarvaes/map-the-branch-4fm9
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To