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

Contents


First steps on GitHub

Right after starting a new repository at https://github.com/Daniel-Mietchen/Open-Research-Proposals, I got the following screen, whose instructions I followed.

Global setup:

 
Download and install Git  
git config --global user.name "Your Name"  
git config --global user.email name@provider.com  
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@github.com:Daniel-Mietchen/Open-Research-Proposals.git  
git push -u origin master      

Existing Git Repo?

  
cd existing_git_repo  
git remote add origin git@github.com:Daniel-Mietchen/Open-Research-Proposals.git  
git push -u origin master      

Importing a Subversion Repo?

  
Click here      

When you're done:

  
Continue

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 https://github.com/Daniel-Mietchen/Open-Research-Proposals/blob/master/git-test-file.txt .

Personal tools