git clone designated branch to the specified folder (repository does not exist, created automatically)

git clone url -b branch name folder_name

Guess you like

Origin www.cnblogs.com/zhangyuanbo/p/12424912.html