HYF-Class20/home

Gabriella Lohy : Workflow : 2 Weeks

Opened this issue · 6 comments

Learning Objectives

Week 1 (March 19th, 2023)

I Need Help With:

  • Creating an issue
  • Pushing my branch to Github
  • Creating a PR

What went well?

  • Cloning a class repo with Git
  • Creating an MD file on VSCode
  • Running a linting using npm

What went less well?

  • Using some tools on VSCode especially about how can I find my branch that I've created and creating branch in a right way

Lessons Learned

  1. ALWAYS keep my files organised!
  2. ALWAYS make sure that I have the newest repo version before creating branch and push using command git pull
  3. Make a branch in a repo by using touch ./name of the folder/Github username.filename extension example : touch ./student-bios/GabriellaLohy.md
  4. ALWAYS make sure to save my work everytime I'm working on VSCode
  5. The mistake(s) that I made was :
    • Not working on the whole/main repo. I was working on the student-bios folder instead of Home.
    • Not creating a proper branch because I was working on the wrong folder
    • Failed to push because apparently my username and useremail on Git was not the same as my Github account.
      I was able to fixed it after searching solution on ChatGPT.
    • Failed to create a right branch on Github. The folder was empty!
      The problem was I don't save my work on VSCode before push

Sunday Prep Work

Honestly I haven't study for Sunday. I will start on Friday (24/03).
These days I was busy trying to do the Student Bio PR assignment and after I'm done, I was busy make a complete recap about it on my book.

Week 2 (March 26th, 2023)

I Need Help With:

Nothing for a moment

I Needed Help With: (Problem solved with coaches guidance. THANK YOU!!)

  • Learning how to know which branch I'm currently using
  • How to delete a branch
  • How to fix npm error

What went well?

  • Understanding git pull
  • Understanding how to work in group project
  • Making a branch and push it back
  • Make a PR
  • Make a project board
  • Understanding how project board works
  • Clone a repo

What went less well?

  • Locating my mistake on npm check about kebab case
  • Push my branch after solving the kebab case error

Lessons Learned

  • Command to delete a branch git branch -D <name of branch we want to delete>
  • Kebab case error on npm is because I used uppercase on my folder name!
  • After remake an PR if I can't find it, I need to go to code, view all branches. It would probably there.
  • Creating an issue called bug to tell my colleagues that there's something didn't work on their branch or some stuff needs to be done
  • Always install an npm to a repo I cloned npm i
  • Npm never installed automatically after we cloned a repo. Because it will use more capacity. That's why we need to install it manually
  • git checkout <branch name we want to work in>
  • NEVER EVER work directly in master branch!! DON'T EVEN THINK ABOUT IT!!
  • How to create a live url using github
  • How to protect our repo for merging

Sunday Prep Work

  • Reading HYF repository about Agile Development
  • Understanding what is pair programming
  • Reading Agile development deliverable All about trees

Watching youtube about

@GabriellaLohy , we will review everything on Sunday.

@samirm00 @bermarte @talmurshidi Yes,, Thank you so much for the support!!

Make a branch in a repo by using a Graphic User Interface touch ./name of the folder/Github username.filename extension example : touch ./student-bios/GabriellaLohy.md

Here you are not using a GUI (Graphic User Interface) but you are using the terminal, see this url

Make a branch in a repo by using a Graphic User Interface touch ./name of the folder/Github username.filename extension example : touch ./student-bios/GabriellaLohy.md

Here you are not using a GUI (Graphic User Interface) but you are using the terminal, see this url

Ahh ok.. Now I understand.. Thanks Bermarte!

WEEK 2

Well done :)

Locating my mistake on npm check about kebab case

You will see an error message in the terminal. You can check freecodecamp - kebab-case for more details.

Push my branch after solving the kebab case error

You have to follow some steps:

  1. Rename the file/folder to match kebab-case.
  2. Run Code Quality Checks again to make sure the error is fixed.
  3. Add the file to staging area git add <file/folder-name>
  4. Add commit git commit -m <meaningful message>
  5. Push the changes git push

I hope I answered your questions.

@talmurshidi Thank you so much Tamer!