Default behavior of git pull

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wouldn't it make sense if "git pull" would by default also pull the branch with the same name from the remote, in case no upstream is configured?

If I can push to a remote with a simple "git push", then I'd also expect to be able to pull from that same remote with a simple "git pull".

Does anything speak against this?

Example:

  git clone $url
  git checkout -b fix-1
  # do commits
  git push           # push to origin/fix-1 (works)
  git push origin    # push to origin/fix-1 (works)
  # other people push to origin/fix-1
  git pull           # pull from origin/fix-1 (fails)
  git pull origin    # pull from origin/fix-1 (fails)



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux