git init <repo>
cd <repo>
git remote add -f origin <url>
This creates an empty repository with your remote, and fetches all objects but doesn't check them out. Then do:
git config core.sparseCheckout true
git init <repo>
cd <repo>
git remote add -f origin <url>
This creates an empty repository with your remote, and fetches all objects but doesn't check them out. Then do:
git config core.sparseCheckout true
Undoing the last (local) merge (and thus rewriting the history):
git reset --hard HEAD~
Reverting last commit (commits the commit of mainline before the last commit again)
git revert -m 1 HEAD
## set your difftool once:
git config --global diff.tool meld
## then use
git difftool -d master other_branch
## to see differences
difftool
and mergetool
Very nice badges for download statistics: https://github.com/metacran/cranlogs.app
See also their project page: http://cranlogs.r-pkg.org/
By adding tags and pushing these to github, one can create release versions (aka builts) with Travis-CI that are part of the repository.
I do this for example for my RR Guideline repository.
To make a release do the following:
## R version 3.2.2 (2015-08-14) -- "Fire Safety"
## Copyright (C) 2015 The R Foundation for Statistical Computing
## Platform: x86_64-pc-linux-gnu (64-bit)
##
## R is free software and comes with ABSOLUTELY NO WARRANTY.
## You are welcome to redistribute it under certain conditions.
## Type 'license()' or 'licence()' for distribution details.
##