User Tools

Site Tools


help:developer_tools:git

Git Create and Clone

There are two ways to create a new online repository in GitHub1):

  • Create online and clone to PC
  • Create on PC and push to git

The first approach is simpler as it requires less work and commands to accomplish a working repository.

Create online and clone

  • Create a new2) repository on GitHub
    • Add a readme
    • Add a license
    • Add a gitignore
  • Click the green “Clone or Download” button and copy the new Git URL.
  • Open a command prompt on the PC with the git installed and in the path
  • Change to the directory where the repository should be cloned into
  • Issue the git command 'git clone “<URL>”' where <URL> is the the link copied in the step above.

Create on PC and push

help/developer_tools/git.txt · Last modified: 2020/06/20 14:39 by 127.0.0.1