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

Initial Commit to the Remote Git Server

VERSION 1 
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 progressdirect.nccs.nasa.gov):

 

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 progressdirect.nccs.nasa.gov:/git/projects/myProject git push origin master

 

 



Comments (0)
USAGov logo NASA Logo - nasa.gov