githubschool / chord

Let's learn about Git and GitHub
https://githubschool.github.io/chord/
MIT License
0 stars 1 forks source link

Parking Lot #7

Open githubteacher opened 3 years ago

githubteacher commented 3 years ago

Agenda

Day 1

Day 1 Meeting recording Access Passcode: hi6%=BJS

Day 2

Day 2 Meeting recording Access Password: ?h23MpF*

Post any questions you may have here during the training.

whatupfoo commented 3 years ago
whatupfoo commented 3 years ago

Basic git commands

Screen Shot 2021-04-13 at 12 05 55 PM

Additional commands:

whatupfoo commented 3 years ago

Screen Shot 2021-04-14 at 10 55 58 AM

  1. Update your local main branch because someone might have make updates while you're away/ sleeping: Make sure you're on the main branch, do git pull on master branch to get your local master branch updated
  2. Do a reverse merge to your local feature branch so your feature branch is updated: we’re going to switch over to that branch first with git checkout FEATURE-BRANCH-NAME and then do a reverse merge git merge main
    • Make your commits: git add, git commit -m
  3. Push it to Github: git push
  4. Open a pull request, get your approvals and then merge it into master. Delete the branch you just merged.
  5. Clean up your local machine, with
git checkout main
git pull --prune
git branch -d FEATURE-BRANCH-NAME