So earlier I had to refresh myself on pushing a repo to Github and this is what I relearned.
- First go to github and create the repo.
- open terminal and type these commands.
1. git init #makes the folder a repo
2. git add. #adds all files to push
3. git remote add origin <url to online repo without brackets> #sets remote repo
4. git remote -v #verifies repo
5. git commit -m ‘First Commit’
6. #If you get a error from git not having your username or email
#git config —global user.name “Your username with quotes”
#git config —global user.email “Your account email with quotes”
7. #if you get the must pull recent changes so it matches local repo
#git pull <Your repo url without brackets>
After that you should be able to
8. git push origin master #Then from now on you should be able to #git push