snipt

Ctrl+h for KB shortcuts

Bash

git > add repo to github

$ git remote add origin git@github.com:<username>/repo_name.git
$ git push -u origin master
https://snipt.net/embed/48e1b3c2494e74bfbeb48d8947c96311/
https://snipt.net/raw/48e1b3c2494e74bfbeb48d8947c96311/
48e1b3c2494e74bfbeb48d8947c96311
bash
Bash
2
2016-09-26T04:57:10
True
False
False
/api/public/snipt/55962/
git-add-repo-to-github
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nv">$ </span>git remote add origin git@github.com:&lt;username&gt;/repo_name.git </span><span id="L-2"><a name="L-2"></a><span class="nv">$ </span>git push -u origin master </span></pre></div> </td></tr></table>
git, github, push, remote, repo

Text only

Close github issue by git commit message

1
2
3
Closes #1.
Closes GH-1.
Closes gh-1.
https://snipt.net/embed/37866784d88c0fc91917d974426aefc4/
https://snipt.net/raw/37866784d88c0fc91917d974426aefc4/
37866784d88c0fc91917d974426aefc4
text
Text only
3
2016-10-01T11:28:05
True
False
False
/api/public/snipt/21619/
close-github-issue-by-git-commit-message
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Closes #1. </span><span id="L-2"><a name="L-2"></a>Closes GH-1. </span><span id="L-3"><a name="L-3"></a>Closes gh-1. </span></pre></div> </td></tr></table>
git, github, issuetracking
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.