i have figured out how create repository on github. trying push repository both macbook pro , server, hosted through http://namecheap.com, , able understand how keep things simple. using wordpress on server , have template theme. want edit files on mac , push them website, keeping easy.
there plenty of information out there on how started github, focus on clearing misconception:
now trying push repository both macbook pro , server
you not push
github server. need clone
github repo development (macbook) , production (server) environments.
git clone https://github.com/username/repository.git
https://help.github.com/articles/fetching-a-remote/
alternatively, can push existing code empty repository initializing locally, setting remote , pushing
git init git add -a git commit -m "initial commit" git remote add origin https://github.com/username/repository.git git push origin master
once have repo setup, typical workflow this:
- make changes in development environment (macbook).
push
changes github.pull
changes github in production or staging environment (server).