How to make Local branches configured for 'git pull':

git

Solution

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 = git@github.com:user/project.git
    fetch = refs/heads/*:refs/remotes/origin/*

Problem

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.

Original source