. A Developer created a new branch (second) directly in the Cloud Manager Git repository (origin). Which commands should be taken to synchronize the Cloud Manager Git with the local Git repository | Community
Skip to main content
JakeCham
New Participant
January 2, 2024
Solved

. A Developer created a new branch (second) directly in the Cloud Manager Git repository (origin). Which commands should be taken to synchronize the Cloud Manager Git with the local Git repository

  • January 2, 2024
  • 3 replies
  • 729 views

What are the correct answer from below 

option 1 

git fetch

git checkout -b second origin /second

 

option 2 

git pull

git fetch second

 

option 3 

git checkout -b second origin/second 

git push -u origin master

 

option 4 

git commit -am second 

git push -u origin master

 

Thanks !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Raja_Reddy

Hi @jakecham 
The correct answer is: Option 3

git checkout -b second origin/second  

git push -u origin master 


Thanks.

3 replies

kautuk_sahni
Employee
January 8, 2024

@jakecham Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Raja_Reddy
Raja_ReddyAccepted solution
New Participant
January 2, 2024

Hi @jakecham 
The correct answer is: Option 3

git checkout -b second origin/second  

git push -u origin master 


Thanks.

somen-sarkar
New Participant
January 2, 2024

Option 1