Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8337593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:20:42+00:00 2026-06-09T04:20:42+00:00

The goal is so after doing git clone git@somewhere:something.git The resulting something/.git/config will contain

  • 0

The goal is so after doing git clone git@somewhere:something.git

The resulting something/.git/config will contain

[push]
    default = tracking

without requiring the cloner to do cd something; git config push.default tracking so he/she won’t accidentally push all branches when pushing without argument (No, nobody reads the README).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:20:45+00:00Added an answer on June 9, 2026 at 4:20 am

    Since it is difficult to enforce policy on the downstream or client side (which is dangerous, as knittl comments), the upcoming Git 2.0 recognizes that fact and will change the default push policy.

    (The discussions on this date from early 2012, as illustrated in “git push current branch“)

    It will go from the current default one:

    matching – push all branches having the same name in both ends.
    This is for those who prepare all the branches into a publishable shape and then push them out with a single command.
    It is not appropriate for pushing into a repository shared by multiple users, since locally stalled branches will attempt a non-fast forward push if other users updated the branch.
    This is currently the default, but Git 2.0 will change the default to simple.

    To the new one, called “simple“:

    upstream – push the current branch to its upstream branch.
    With this, git push will update the same remote ref as the one which is merged by git pull, making push and pull symmetrical. See “branch.<name>.merge” for how to configure the upstream branch.

    simple – like upstream, but refuses to push if the upstream branch’s name is different from the local one.
    This is the safest option and is well-suited for beginners. It will become the default in Git 2.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to run the mvn release:prepare goal and it's hanging after the push.
My main goal with this question is optimization and faster run time. After doing
Goal : After user saves data to my mysql DB, a JSON teaser of
goal : I want to place a text after the submit button using hook_form_alter.
Does the following psuedo code accomplish my goal of cleaning up after myself when
I have this SSIS workflow defined. After I explain what I'm doing, it might
I am having trouble doing what the title said. My goal is to be
Here's what I'm currently doing/trying to do to accomplish my goal. But it is
My goal is to have something like a select option in a HTML form,
I am designing a web application which will be doing three things: 1) store

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.