Skip to content

Indresh P #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Indresh_P.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#I forked from your repo
git clone http://github.com/indreshp135/task0-webdev-23/
#This clones to local
cd task0-webdev-23
#To change dir
git checkout -b Indresh_P
#This create a branch named Indresh_P and goes there
touch log.txt
#to create the file
git checkout -b b1
#create first branches
echo "chicken" | cat > ans
#typed answer to that file
git add .
#added it
git commit -am "created ans"
#committed it
git checkout -b b2
#create second branch
echo "#itsmychoise" | cat > ans
#typed answer to that file
git add .
#added it
git commit -am "created ans"
#committed it
git checkout b1
#back to b1
git merge b2
#got conflit and file was like this
<<<<<<< HEAD
chicken
=======
#itsmychoise
>>>>>>> b2
#changed it
git add .
git commit -am "conflit resolved"
#committed it
git checkout Indresh_P
#back to Indresh_P branch
mv log.txt Indresh_P.txt
#changed file name
git merge b1
git checkout master
git merge Indresh_P
git push
3 changes: 3 additions & 0 deletions ans
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
chicken
#itsmychoise