Coders Opinion

Push new project to an external bare git repository

Introduction

user

Robert-Jan de Dreu

Hey, I’m Robert-Jan de Dreu. A freelance software engineer, developing software since 2009. While using PHP and Javascript I build well structured and tested software.

About Me Hire Me
Featured

Development Tools

Push new project to an external bare git repository

Posted by Robert-Jan de Dreu on .

Sometimes you need to start up your project. I never found a simple guide on how to push to a bare git repository so I’m writing this down as a note to myself.

git init
touch .gitignore
git add .gitignore
git commit -m "Initial commit"
git remote add origin /path/to/bare/repo
git push origin master

This will push your new changes to you external bare git repository

user

Robert-Jan de Dreu

http://codersopinion.com

Hey, I’m Robert-Jan de Dreu. A freelance software engineer, developing software since 2009. While using PHP and Javascript I build well structured and tested software.