Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What does these command line means when pushing code to remote repo? Edited

Dear All,

I found the command line executed on sourcetree when push code to remote are as follows,

could anyone help to explain what do these arguments mean?

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream origin develop:develop-mars


Thanks and Best regards,


1 answer

1 accepted

1 vote
Answer accepted

The `-c` options are to override the values in the config for this command alone.

Look for those options in the documentation (git-config) and you'll find your answers :

- `diff.mnemonicprefix`

- `core.quotepath`

The `--no-optimal-locks` is there: 

`push` and everything that is behind can be explained reading this documentation (git-push).

A good way to improve your knowledge is to look directly in the documentation of the tools ahead. It's not so difficult to find ;-)

Happy learning.

Dear Arnaud JOLLY,


Thanks for your great helps and detailed explanations.


Best regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,458 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you