git checkout does not create branch directory

asked 2018-08-04 20:00:09 -0600

miguelmirandag gravatar image

updated 2018-08-05 01:23:38 -0600

villykruse gravatar image

Im triying to compile a custom kernel using wiki guide, this is what i run:

 $ fedpkg clone -a kernel
$ cd kernel
$ git checkout -b linux_ck_4.17 origin/f28

but git checkout command doesn't do anything, no linuxck4.17 so i dont get the f28 remote repository files, do i have to configure some setting before run the commands? the clone command works, there is a kernel directory and all the files are there. git branch also shows a linuxck4.17 branch in addition to master:

$ git branch
  linux_ck_4.17
* master
edit retag flag offensive close merge delete

Comments

Works for me

$ git checkout -b linux_ck_4.17 origin/f28
Branch 'linux_ck_4.17' set up to track remote branch 'f28' from 'origin'.
Switched to a new branch 'linux_ck_4.17'
$ git branch 
* linux_ck_4.17
  master
$
villykruse gravatar imagevillykruse ( 2018-08-05 01:48:31 -0600 )edit

Works for me as well (different branch, different project).

abadrinath gravatar imageabadrinath ( 2018-08-05 04:58:12 -0600 )edit

the part that defaul working branch is working. i always got the asterisk in the branch

$ git branch * linuxck4.17 master

but there is not linuxck4.17 directory, what the default path where it should be created?

miguelmirandag gravatar imagemiguelmirandag ( 2018-08-05 05:41:28 -0600 )edit

Sorry for asking this; but what makes you think that git should create a directory named linuxck4.17?

villykruse gravatar imagevillykruse ( 2018-08-05 10:36:19 -0600 )edit

This is a comment and should have been posted as such.

villykruse gravatar imagevillykruse ( 2018-08-05 10:37:27 -0600 )edit