0

Is there anyway to set the setting of git pull and git push to only pull and push the currently checked out branches, rather than all tracking branches.

I know you can do it by specifying the branch, but is there anyway to do it without having to specify the branch ?

Quan Vuong
  • 1,919
  • 3
  • 14
  • 24
  • `git checkout -b ` can chackout the branch and if you wish to push it back then you can use `git push -u origin ` – Ranadip Dutta Jun 14 '17 at 05:28
  • 4
    Possible duplicate of [Git - What is the difference between push.default "matching" and "simple"](https://stackoverflow.com/questions/21839651/git-what-is-the-difference-between-push-default-matching-and-simple) – 1615903 Jun 14 '17 at 05:29
  • "pull", in Git, means "fetch, then merge or rebase". The fetch that pull runs defaults to a limited fetch that fetches only the current or named branch(s), and the merge or rebase step necessarily affects only the current branch. – torek Jun 14 '17 at 05:33

0 Answers0