User:Timothee Flutre/Notebook/Postdoc/2012/08/14: Difference between revisions
From OpenWetWare
(→About Git: add practical intro) |
|||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
** official [http://git-scm.com/doc book] | ** official [http://git-scm.com/doc book] | ||
** [http://gitref.org/ quick ref], [http://www.ndpsoftware.com/git-cheatsheet.html cheatsheet] | ** [http://gitref.org/ quick ref], [http://www.ndpsoftware.com/git-cheatsheet.html cheatsheet] | ||
** [http://mrchlblng.me/2014/09/practical-git-introduction/ practical intro] | |||
** tutorial for [http://nyuccl.org/pages/GitTutorial/ scientists] (another by a [http://kbroman.github.io/github_tutorial/ geneticist]) | ** tutorial for [http://nyuccl.org/pages/GitTutorial/ scientists] (another by a [http://kbroman.github.io/github_tutorial/ geneticist]) | ||
** [http://gitready.com/ resources] depending on your level | ** [http://gitready.com/ resources] depending on your level | ||
Line 88: | Line 89: | ||
* '''Personal repositories''': for some small project, I am the only one working on them and I want to keep them confidential, so I have my own server in my home on a computer cluster (~/opt/git) | * '''Personal repositories''': for some small project, I am the only one working on them and I want to keep them confidential, so I have my own server in my home on a computer cluster (~/opt/git) | ||
** <code>mkdir ~/smallproject; cd ~/smallproject; echo "hello" > README; git init; git add README; git commit -m "first commit"; cd ..; git clone --bare smallproject/.git</code> | ** <code>mkdir ~/smallproject; cd ~/smallproject; echo "hello" > README; git init; git add README; git commit -m "first commit"; cd ..; git clone --bare smallproject/.git</code> | ||
** <code>mkdir -p ~/cluster1; sshfs me@cluster1: ~/cluster1; cp -r smallproject.git ~/cluster1/opt/git</code> | ** edit <code>smallproject.git/config</code> to only keep section <code>[core]</code> and, inside, set <code>bare = true</code> | ||
** <code>mkdir -p ~/cluster1; sshfs -oworkaround=rename me@cluster1: ~/cluster1; cp -r smallproject.git ~/cluster1/opt/git</code> | |||
** <code>cd ~/smallproject; git remote add origin ~/cluster1/opt/git/smallproject.git</code> | ** <code>cd ~/smallproject; git remote add origin ~/cluster1/opt/git/smallproject.git</code> | ||
** I can now push and pull from this minimal server | ** I can now push and pull from this minimal server |
Revision as of 11:49, 11 November 2014
Project name | <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page <html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html> </html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html> |
About Git
all: main supp main: latex paper_main.tex bibtex paper_main latex paper_main.tex latex paper_main.tex pdflatex paper_main supp: latex paper_supplements.tex bibtex paper_supplements latex paper_supplements.tex latex paper_supplements.tex pdflatex paper_supplements clean: rm -f *~ *.aux *.dvi *.log *.pdf *.bbl *.blg *.toc
|