Skip to content

Instantly share code, notes, and snippets.

@ann-mukundi
Created January 23, 2018 13:26
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ann-mukundi/a44b2f61ea279066e86d8688a55db60e to your computer and use it in GitHub Desktop.
Save ann-mukundi/a44b2f61ea279066e86d8688a55db60e to your computer and use it in GitHub Desktop.
CP-readiness: git branches
Create a github account here
Create a new repository on github with the name cp-readiness
Follow the instructions to push an existing repository from the command line
In your local machine, create a branch called recipes
Switch to the new branch
In a folder called recipe, create a file called tea.txt
Add the changes to staging
Push to the recipes branch
@aminukano585
Copy link

Done!

@mudambirichard
Copy link

mudambirichard commented May 12, 2018

Thanks for this simple exercise it is so educative

@Slinjez
Copy link

Slinjez commented May 13, 2018

This was interesting... you can use this as a guide
image

@Slinjez
Copy link

Slinjez commented May 13, 2018

git add . won't just add everything, so did it manually.
image

@maxwellgithinji
Copy link

@Slinjez, the "git add . " command is used to stage all files before commit, but in this case, since we are staging one file, "git add" is just fine.
check this out (https://stackoverflow.com/questions/19576116/how-to-add-multiple-files-to-git-at-the-same-time)

@maxwellgithinji
Copy link

bandicam 2018-05-13 20-07-10-952

@maxwellgithinji
Copy link

I forgot to commit the changes, Here is the last part
bandicam 2018-05-13 20-31-59-761

@judeinno
Copy link

Thanks for the test it helps one keep in check

@joelmachango
Copy link

@Darius-Ndubi
Copy link

Awesome, Thanks for the test.

@sylsirlym
Copy link

sylsirlym commented Jun 7, 2018

Done.

@mishmeshachs
Copy link

Awesome!

Copy link

ghost commented Jun 11, 2018

so interesting

@samwelkanda
Copy link

👍 👍

@mosestosin
Copy link

interesting exercise

@devphilip
Copy link

it's really interesting
screenshot from 2018-07-06 02-26-05

@mutaimwiti
Copy link

screenshot from 2018-07-10 11-28-59

@MRichardN
Copy link

Interesting exercise, now I know

@akinyeleolat
Copy link

done

@semainda
Copy link

semainda commented Sep 7, 2018

This is awesome too.. Anne. Thanks

@Chell0
Copy link

Chell0 commented Sep 11, 2018

Hello

  • I gave it a try and below is my solution

gitbranching

@paulzay
Copy link

paulzay commented Sep 29, 2018

done deal

@ebzeal
Copy link

ebzeal commented Sep 30, 2018

Done

@lovisgod
Copy link

done

@hustlaviola
Copy link

Yep

@vincentiroleh
Copy link

desktop screenshot

@Siffersari
Copy link

Done, thank you so much for this task.. helped me avoid a mistake that would really have cost me a great deal.

@micah-akpan
Copy link

intro_to_git_2

@AbrahamOssai
Copy link

Branch created. Great exercise.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment