Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 3
    Does this answer your question? Git for beginners: The definitive practical guide Commented Nov 2, 2020 at 8:13
  • 1
    It depends on your config. Also, this is way too vague and confused, could you elaborate? Commented Nov 2, 2020 at 8:15
  • 1
    Otherwise you can follow this post. Commented Nov 2, 2020 at 8:15
  • 1
    I suppose you are trying to push to a remote branch. Then you can choose the branch to which you want to push to: git push origin f1:f1 will push to remote's f1 whereas git push origin f1:master will push to remote's master. Please read about remote branches first: git-scm.com/book/en/v2/Git-Branching-Remote-Branches Commented Nov 2, 2020 at 8:16
  • What will Git push origin f1:f1 do ? Commented Nov 2, 2020 at 8:28