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

From OpenWetWare
Jump to navigationJump to 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 https://github.com/Daniel-Mietchen/Open-Research-Proposals, I got the following screen, whose instructions I followed. <html> <div id="next_step" class="standard_form"> <h2>Global setup:</h2> <pre> Download and install <a target="_blank" href="http://git-scm.com/download">Git</a> git config --global user.name "Your Name" git config --global user.email name@provider.com <a href="https://github.com/account#ssh_bucket">Add your public key</a> </pre> <h2>Next steps:</h2> <pre> 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 </pre> <h2>Existing Git Repo?</h2> <pre> cd existing_git_repo git remote add origin git@github.com:Daniel-Mietchen/Open-Research-Proposals.git git push -u origin master </pre> <h2>Importing a Subversion Repo?</h2> <pre> <a href="https://github.com/Daniel-Mietchen/Open-Research-Proposals/imports/new">Click here</a> </pre> <h2>When you're done:</h2> <pre> <a href="https://github.com/Daniel-Mietchen/Open-Research-Proposals">Continue</a></pre> </div> </html>

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 .