I want to make a local and a remote branch called trial from the development branch on the original. However, even though my current local branch keeps track of the original / tracking, when I check the new branch, it takes the original / master. Therefore, I will have to follow the steps given below to get a test branch on both the remote and the local. Git checkout -b test (by default it chooses the original / master though my current branch is root / developed) Reset GIT original GIT - original original / develop git push -u original Test
GIT checkout -b testing - track Original / Evolution should do the trick.
As an additional gift, if you want to create a local branch to track a remote branch with a similar branch, you may be lazy -b < / Code> Options GIT checkout - track original / development developed and a local branch, This type of GIT checkout -b development - track origin / development from the doctor
feature In the form, - B means to construct a non-bracket-bracket
[...]
If any-B optio is given, the name of the new branch is called Remote-Tracking Branch Will be taken from.
No comments:
Post a Comment