Skip to content

[Hands-On Discussion] T2L5/hp-populate-remote (Pushing a local repo to an empty emote repo) #56

@damithc

Description

@damithc

Lesson

https://nus-cs2103-ay2526s1.github.io/website/book/gitAndGithub/push/

Hands-on setup

Responses to provide when running new.sh:

Hands-on name: hp-populate-remote
Requires Git? (defaults to y)  [y/N]: y
Requires Github? (defaults to y)  [y/N]: y
  1. Create a local repo, similar to [Hands-On Discussion] T2L4/hp-add-remote (Add a remote to a repo) #55
  2. Create an empty repo gitmastery-things in the user's GitHub account (gh repo create --public gitmastery-things)
  3. Add the empty remote repo as a remote named origin to the local repo

Instructions for students

You may continue with the sandbox used in the previous practical, or run gitmastery download hp-populate-remote to create a fresh sandbox for this practical.

Requires remote repository?

No

Additional remarks

Is it even possible to create an empty remote repo using GitHub CLI?
What to do if the user already has a remote repo with the same name? Ask user whether to reuse/reset it or create a new one with another name? e.g, things2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions