0% found this document useful (0 votes)
41 views1 page

Git Rebase Conflict

This document provides instructions for a Git rebase exercise to resolve a conflict. It instructs the user to clone a remote repository, change to the cloned directory, view the initial file contents, and add a code line to check for odd numbers using the sed command. The goal is to have the Python file check if a number is even or odd and print the result.

Uploaded by

harithahdasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Git Rebase Conflict

This document provides instructions for a Git rebase exercise to resolve a conflict. It instructs the user to clone a remote repository, change to the cloned directory, view the initial file contents, and add a code line to check for odd numbers using the sed command. The goal is to have the Python file check if a number is even or odd and print the result.

Uploaded by

harithahdasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Try It Out : Rebase Conflict

Git - Rebase Terminal + # $


Your Interactive Learning Environment Bash Terminal
! Step 1 of 4 "

>
Home
Click the following command to clone the
remote repository:

git clone /s/remote-


project/checkNumber ↩
My
Courses
Use the cd checkNumber ↩
command to open the cloned repository.

Use the cat check_number.py ↩


Explore command to view the content of the file.

The program checks whether the number


4 is even, and prints it.

Channels Add a check condition to print the odd


number.

Click the following command to add the


check condition:

sed -i -e "\$aelse: \n
HH
print('{0} is

You might also like