Skip to content

Beginner Guide

Rudolph Pienaar edited this page Feb 3, 2021 · 1 revision

Upload a Folder to Github

First, create a GitHub account on https:/ if you don't already have one.

Git has many GUI front-ends: Github Desktop, GitKraken, IDEs like VSCode and Intellij PyCharm have git integration preinstalled. These may or may not be easier to use. Below are instructions on how to use git via the command-line.

  1. Create a new repository on https:/ with the same name as the app project directory generated by the cookiecutter command. Make sure that the repository is public. Don't initialize the repository with a README, a license or a .gitignore file.

  2. Change the current working directory to the app project and initialize this local directory as a Git repository

git init
  1. Add and commit the files in the local repository
git add -A
git commit -m "First commit"
  1. Add the URL for the remote Github repository created in step 1 where your local repository will be pushed
git remote add origin <remote_Github_repository_URL> # (e.g. https:/FNNDSC/pl-neuproseg.git)
git remote -v
  1. Push the changes in your local repository to GitHub
git push origin master