GIT 常用命令
<h1 class="postTitle"><a id="cb_post_title_url" class="postTitle2" href="https://www.cnblogs.com/zhangfu/articles/10335471.html">GIT 常用命令 一、新建代码库$ git init <span class="token punctuation">[project<span class="token operator">-name<span class="token punctuation">] 二、配置Git的设置文件为 $ git config <span class="token operator">-e <span class="token punctuation">[<span class="token operator">--global<span class="token punctuation">] 三、增加/删除文件<span class="token comment"><span class="hljs-comment"><span class="hljs-comment"># 添加指定目录到暂存区,包括子目录 四、代码提交<span class="token comment"><span class="hljs-comment"><span class="hljs-comment"># 提交暂存区的指定文件到仓库区 五、分支<span style="color: #ff0000">$ git branch <span class="token operator"><span style="color: #ff0000">-a |