Friday, August 1, 2014

Setting up Git Repo on BlueHost Account

This worked on a BlueHost account

I had a local git repo that I wanted to be able to push to a BlueHost account.


ssh git@example.com
mkdir my_project.git
cd my_project.git
git init --bare

cd my_existing_git_project
git remote add origin git@example.com:my_project.git
git push -u origin master

Source(s)

Syncing a Forked Git Repo

Do this once:

git remote add upstream git_url_source_of_fork

Then do this every time to sync up:

git fetch upstream
git merge upstream/master 

Sources: