Skip to content

Instantly share code, notes, and snippets.

View hofnerb's full-sized avatar
💭
I may be slow to respond.

Benjamin Hofner hofnerb

💭
I may be slow to respond.
View GitHub Profile
## 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.
##  

Create and push tags

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:

  1. Make changes and commit these:
@hofnerb
hofnerb / cranlogs.md
Last active August 29, 2015 14:23
Get download statistics from CRAN (Cloud)
@hofnerb
hofnerb / Overview.md
Last active August 29, 2015 14:20
Overview: git HowTos
@hofnerb
hofnerb / remote_url.md
Last active October 16, 2023 05:43
git remote set-url

Review and Change Remote URL

git remote -v
# View existing remotes

git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL

git remote -v
@hofnerb
hofnerb / meld_branches.md
Last active August 29, 2015 14:18
Graphical differences of branches with meld
@hofnerb
hofnerb / Undoing_Merges.md
Created April 9, 2015 16:15
Undoing Merges

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
@hofnerb
hofnerb / git_r-forge.md
Last active September 30, 2019 10:53
Git with R-forge

Git with R-forge

In the following example we will use the package gamboostLSS. Replace this were necessary.

First "download" (clone) existing r-forge repository

mkdir gamboostLSS
cd gamboostLSS
@hofnerb
hofnerb / sparse_clones.md
Last active February 6, 2024 22:07
Make sparse clone
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