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

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

E-John Lien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 19, 2020

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
Arnaud JOLLY
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 20, 2020

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.

E-John Lien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 20, 2020

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
AUG Leaders

Atlassian Community Events