![]() Therefore, any repository that is outside of your local area on the Internet is remote. ![]() Now that we've covered the specifics, what is a git remote anyway? A Git remote is the same Git repository external to you because Git is a distributed version control system, there is no "central" repository that is correct, and the same Git repository is maintained in multiple locations. This section explains the concept of a "remote branch" in Git, which is necessary to understand why the previous command works. By selecting only branch_name, you can create locally. Note here that the branch name specified in this one-liner is not a tracking branch like origin/branch_name, but only branch_name. Checkout the local branch that was created.Create a local branch with the same branch name as the remote branch.Create a remote branch tracking branch (such as origin/branch_name).If you have difficulty understanding the following, please refer to the following sections for further explanation. Using this command, you can perform the following three operations simultaneously. (*Only modern Git version 1.6.6 or later is supported, so it may not work with older versions of Git) git fetch & git checkout That's easy! In the following command, should be the name of the remote branch you want to checkout. In conclusion, the only command to checkout a remote branch is the following. It also introduces some useful commands for handling remote branches in addition to checkout. This article explains how to checkout a remote branch of Git and its detailed mechanism.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |