Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git: Setting up a Remote Repository and Doing Initial Push

Setup remote repository:

mkdir my_project.git
cd my_project.git
git init --bare

On local machine:

cd my_project
git init
git add *
git commit -m "Initial commit"
git remote add origin
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment