- Create a new repository on github
- Clone it
git clone https://github.com/USERNAME/REPONAME
- Copy files into this directory
- Add them
git add -A
- Commit
git commit -m "example message"
- Push
git push
- "You have divergent branches and need to specify how to reconcile them."
git config --global pull.ff only
Type it
git config --global --unset credential.helper
git config --unset credential.helper
Then remove a previous data
vi ~/.git-credentials
Store git credentials again:
git config --global credential.helper store
git pull