Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,392
Community Members
 
Community Events
165
Community Groups

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
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,270 views 127 26
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