cancel
Showing results for 
Search instead for 
Did you mean: 
jonawang
Flight Engineer
Flight Engineer
  • 1,195 Views

DO180 (v4.6) Chapter 6 Section 8 (Guided Exercise) error in "git push -u origin s2i"

Jump to solution

Hello All,

   I encountered error at step 1 of the DO180 Section 6.8 Guided Exercise: Creating a Containerized Application with Source-to-Image. Instructions executed were:

$ cd ~/DO180-apps

$ git checkout master

$ git checkout -b s2i

$ git push -u origin s2i

==> error happened here ...

push_error.png

Can anyone advise me how to resolve this issue ? Thanks.

Labels (1)
1 Solution

Accepted Solutions
jonawang
Flight Engineer
Flight Engineer
  • 1,163 Views

Thank you, Joseph.

It works as your description.

View solution in original post

0 Kudos
2 Replies
joseph_joy
Mission Specialist
Mission Specialist
  • 1,180 Views

the error comes because your local branch is ahead ( more updates ) than the remote branch.

run $ git status to know the differents

to fix the mentioned errorn

run  $git push -f  origin s2i

check appendix D for git commands.

jonawang
Flight Engineer
Flight Engineer
  • 1,164 Views

Thank you, Joseph.

It works as your description.

0 Kudos
Join the discussion
You must log in to join this conversation.