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,

E-John

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: https://git-scm.com/docs/git#Documentation/git.txt---no-optional-locks 

`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,

E-John

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

2,848 views 0 10
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