<commit_before>---
layout: post
title: Git Cheat Sheet
description: "Cheat Sheet for Git & Gitolite"
tags: [sample post, code, highlighting]
comments: true
---

## Git


{% highlight css %}

{% endhighlight %}


## Gitolite

###### Add permissions to adhoc repo

{% highlight css %}
ssh git@git.openbet perms -h<commit_msg>Added no-ff and toc<commit_after>---
layout: post
title: Git Cheat Sheet
description: "Cheat Sheet for Git & Gitolite"
tags: [sample post, code, highlighting]
link: http://stackoverflow.com/questions/501407/is-there-a-git-merge-dry-run-option
comments: true
---

<section id="table-of-contents" class="toc">
  <header>
    <h3>Contents</h3>
  </header>
<div id="drawer" markdown="1">
*  Auto generated table of contents
{:toc}
</div>
</section><!-- /#table-of-contents -->

## Git

###### Emulate CVS merge without committing or `fast forward:http://stackoverflow.com/questions/501407/is-there-a-git-merge-dry-run-option`
{% highlight css %}
git merge --no-commit --no-ff $BRANCH
{% endhighlight %}

## Gitolite

###### Add permissions to adhoc repo
{% highlight css %}
ssh git@git.openbet perms -h
{'fraction_non_alphanumeric': 0.16681534344335414, 'fraction_numerical': 0.013380909901873328, 'mean_word_length': 4.194444444444445, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1193365', 'n_tokens_mistral': 416, 'n_tokens_neox': 371, 'n_words': 107}