User:Daniel Mietchen/Notebook/Open Science/2011/05/03

From OpenWetWare

Jump to: navigation, search
What would science look like if it were open? Main project page
Previous entry      Next entry


First steps on GitHub

Right after starting a new repository at, I got the following screen, whose instructions I followed.

Global setup:

Download and install Git  
git config --global "Your Name"  
git config --global  
Add your public key        

Next steps:

mkdir Open-Research-Proposals  
cd Open-Research-Proposals  
git init  
touch README  
git add README  
git commit -m 'first commit'  
git remote add origin  
git push -u origin master      

Existing Git Repo?

cd existing_git_repo  
git remote add origin  
git push -u origin master      

Importing a Subversion Repo?

Click here      

When you're done:


Adding an additional file

The sequence

git add git-test-file.txt 
git commit -m "test file" git-test-file.txt 
git pull
git push

resulted in .

Personal tools