Git实用命令集合
<p><strong>Git密钥生成</strong></p>
<pre><code>ssh-keygen</code></pre>
<p><strong>用户及邮箱设置</strong></p>
<pre><code>git config --global user.name "huangwj"
git config --global user.email "huangwj@paxsz.com"</code></pre>
<p><strong>git永久保存账号及密码</strong></p>
<pre><code>git config --global credential.helper store</code></pre>
<p><strong>创建git添加、提交、推送组合命令</strong></p>
<pre><code>git config --global alias.cmp '!f() { git add -A && git commit -m "$@" && git push; }; f'</code></pre>