Como você consegue que o git sempre puxe de um ramo específico?

Eu não sou um mestre do git, mas trabalho com ele há algum tempo, com vários projetos diferentes. Em cada projeto, eu sempregit clone [repository] e, a partir desse ponto, sempre podegit pull, contanto que eu não tenha alterações excelentes, é clar

Recentemente, tive que reverter para uma ramificação anterior e o fiz comgit checkout 4f82a29. Quando eu estava novamente pronto para puxar, descobri que tinha que voltar a dominar meu ramo. Agora, não consigo puxar usando umgit pull mas, em vez disso, precisa especificargit pull origin master, o que é irritante e indica para mim que não entendo completamente o que está acontecendo.

O que mudou, o que não me permite fazer uma sequênciagit pull sem especificar o mestre de origem e como alterá-lo novamente?

ATUALIZAR

-bash-3.1$ cat config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[branch "master"]
[remote "origin"]
    url = [email protected]:user/project.git
    fetch = refs/heads/*:refs/remotes/origin/*

UPDATE 2: Para ser claro, entendo que meu método original pode estar incorreto, mas preciso corrigir esse repositório para que eu possa simplesmente usargit pull novamente. Atualmente, o git pull resulta em:

-bash-3.1$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either.  Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull  ').
See git-pull(1) for details on the refspec.

If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:

    branch.master.remote = 
    branch.master.merge = 
    remote..url = 
    remote..fetch = 

See git-config(1) for details.

Eu posso dizergit pull que ramo fundir e funciona corretamente, masgit pull não funciona como antes do meugit checkout.

questionAnswers(8)

yourAnswerToTheQuestion