Solved Git src checkout from main to releng

vigole

Daemon

Reaction score: 1,476
Messages: 1,285

I'm on main branch of /src tree.
git clone -o freebsd https://git.FreeBSD.org/src.git /usr/src

Can I simply checkout to releng/13.0 by issuing following command:
git checkout releng/13.0

and then pull/update releng/13.0?
git pull --ff-only

Question 1. Is that all, or there're some missing steps?

Question 2. Now, suppose I checkout the releng/13.0. Is the following command is the right way to check out the main branch:
git pull origin main --ff-only

BTW. I know I should check it myself, but I'm on dying bandwidth!

P.S. This is my git global config:
Code:
git config --global user.name "USER"
git config --global user.email USER@HOST
git config --global pull.rebase true
git config --global fetch.prune true
git config --global diff.colorMoved
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,367
Messages: 38,901

Question 1. Is that all, or there're some missing steps?
Yes.
Question 2. Now, suppose I checkout the releng/13.0. Is the following command is the right way to check out the main branch:
You can "switch" to a different branch just by using git checkout <branch>.

BTW. I know I should check it myself, but I'm on dying bandwidth!
Switching between branches, or having more than one branch locally, isn't going to increase the size of the downloaded repository.
 
Top