I am trying to create a branch named springdevelopment and push the code it to the git.
git checkout -b springdevelopment
git add .
git commit -m 'initial commit'
git push origin springdevelopment
git checkout --track origin/springdevelopment
when i executed git remote show origin . I am missing "spring development" in local branches git pull section.
Can you please explain what is happened and what is the wrong i have done.
Thanks for your valuable information in advance.
git checkout -b springdevelopment
git add .
git commit -m 'initial commit'
git push -u origin springdevelopment
no need to do this:
git checkout --track origin/springdevelopment
You can always update tracking later with:
git branch --set-upstream-to origin/springdevelopment
update your refspec to:
[remote "origin"]
url = [email protected]:user/project.git
fetch = refs/heads/*:refs/remotes/origin/*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With