![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git相关
folute_
这个作者很懒,什么都没留下…
展开
-
git基本命令总结
创建新仓库 创建新文件夹,打开然后执行git init以创建新的git仓库 检出仓库 创建一个本地仓库的克隆版 git clone/path/to/respository 如果是远端服务器上的仓库,则执行 git clone username@host:/path/to/respository 添加和提交 提出更改并把它们添加到暂存区 git add<filename>...原创 2018-07-21 23:13:00 · 168 阅读 · 0 评论 -
git过滤文件
使用git提交,有时需要忽略不必要的文件或文件夹,可以采用以下方式: 1.首先在仓库中创建隐藏文件“.gitignore” 方法:选中本地仓库,右击“Git Bash Here”,然后执行如下命令: touch .gitignore 2.用文本编辑器如editplus或notepad++输入需要忽略的文件或文件名,如下所示: ##ignore this file## /target/ ...原创 2018-07-22 19:37:17 · 2236 阅读 · 0 评论