Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 801 Bytes

Activity1.md

File metadata and controls

26 lines (19 loc) · 801 Bytes

Git branches: Activity 1

Watch the activity

Create a branch, add a file, and merge into main.

  1. Copy the URL of this repo
  2. Using the URL, clone this repo in JupyterLab
  3. Create a branch.
    • Click the little Git icon on left
    • Click little arrow showing 'main'
    • Click New Branch
    • Give it a name. I will call my branch eli
  4. Create a new text or markdown file.
  5. Save it with a unique name, e.g. I will call mine eli.md
  6. Stage and commit the change. this step is important before you switch branches
  7. Switch back to the main branch (JupyterHub might complain if your file is open. Just close it)
  8. Merge your branch
    • Git > Merge Branch > select your branch
  9. Look at status in terminal
    • git status
    • git log