Skip to content

Instantly share code, notes, and snippets.

@pditommaso
Forked from stephenhardy/setupGithubRepo
Created October 26, 2021 15:19
Show Gist options
  • Save pditommaso/0ac4e3643d803d7a7959d00fa33ca398 to your computer and use it in GitHub Desktop.
Save pditommaso/0ac4e3643d803d7a7959d00fa33ca398 to your computer and use it in GitHub Desktop.
Initial setup steps for a git and github project
-- Initial setup
mkdir <YOURPROJECT>
cd <YOURPROJECT>
git init
-- Link to GitHub hosted repos
git remote add origin <git@github.com:YOURACCOUNT/YOURREPO.git>
git pull origin master
-- Add some files
git add .
git commit -m "YOUR COMMENTS"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment