Skip navigation
NASA Logo, National Aeronautics and Space Administration
Modeling Guru Banner
Currently Being Moderated

Initial Commit to the Remote Git Server

Created on: Jul 16, 2013 11:41 AM by Jules Kouatchou - Last Modified:  Jul 16, 2013 11:56 AM by Jules Kouatchou

This is just a quick reminder on the local commands to do the initial commit (first version of the project) on the remote Git server.

It is assumed that the repository (named for instance myProject) was create on the remote server (say


cd /git/projects
mkdir myProject
cd myProject
git --bare init


Now we want to commit the first version of myProject to the remote server. From your local machine, type:


cd myProject git init git add . git commit -m 'initial commit' git remote add origin git push origin master



Comments (0)
USAGov logo NASA Logo -