githubschool / popcorn-color

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

Parking Lot #9

Open githubteacher opened 4 years ago

githubteacher commented 4 years ago

Post any questions you may have here during the training.

Don't forget you have the training manual here.

Day 1

Day 1 Meeting recording Access Password: 1w=.m958

Day 2

Day 2 Meeting recording Access Password: 3O.0Q&4&

Notes to help you review

Project 1

Project 2

Project 3

Project 4

Best Practices

  1. Open PR early
    • Use Draft Pull Request
    • Or use “WIP label” / WIP Probot
  2. Practice GitHub Flow (unless has advanced workflow that makes sense)
  3. Avoid using git add ., add files one by one
  4. Commit messages should be ~50 characters
  5. Make atomic commits (you are able to describe your work in a single commit message - don’t commit after 3 months of work)
  6. Use git pull --prune to clean up references of remote-tracking branches. Or set the default: git config --global fetch.prune true, this setting lets you prune by default.
  7. We don’t encourage the use of forks in a company. Forks are only useful when consuming and contributing to open source projects
  8. Small atomic commits help with git revert

Basic Git Commands

Screen Shot 2020-06-25 at 9 03 51 AM

Day to Day Basic Workflow

Screen Shot 2020-05-07 at 10 39 02 AM

Assuming you have already cloned this repository, and it already exists on your local machine

  1. Update your local main branch:
    git checkout master
    git pull
  2. Update your local feature branch
    git checkout feature-branch
    git merge master

    2a. Do your work and commit

    git add
    git commit -m
  3. git push
  4. Open Pull Request, get your reviews and merge your PR into main branch
  5. Rinse and repeat. git checkout master, git pull
bterrific2008 commented 4 years ago

Is there a way to view merge conflicts in Jupyter Notebook, without having to look at the ipynb source?

reply from @rwnfoo

whatupfoo commented 4 years ago

JIRA-12345

whatupfoo commented 4 years ago

❓ Can you edit the tag description after you have created it?

You can delete tags and redo them with the following commands:

git tag -d 1.0
git tag -a 1.0 -m "New message"