I have a project I want to bring into Git.
I have my local git config
complete, verified I can SSH in, and have a branch "main
" setup on GitHub.
I substituted "xyz
" for my actual GitHub branch.
The "git checkout
" command does not appear to be creating a local branch, and no error message is issued.
git remote -v
svi git@github.com:rboudrie/XYZ.git (fetch)
svi git@github.com:rboudrie/XYZ.git (push)
git branch -a
remotes/xyz/main
git checkout -b newbranch
Switched to a new branch 'newbranch'
git branch -a
remotes/xyz/main
I am attempting to create a local branch, and am expecting the branch to show up in "git branch -a
" (or just git branch) when done.
I used the "-a
" on git branch
to prove I am successfully connecting to my repo on github.com.