
git
潜伏在伤口
从事Web开发。前端擅长使用angular.js+Bootstrap,后端擅长SSH。
展开
-
git中删除已跟踪文件的跟踪
情形已经对某个文件(夹)进行提交,想要删除对这个文件(夹)的跟踪。例如误提交工具自动生成的配置文件等命令git rm --cached 文件路径 //递归删除添加 -r 配合.gitignoregit rm -cached说明 When –cached is given, the staged content has to match either the tip of the branch o原创 2016-03-02 09:17:41 · 544 阅读 · 0 评论 -
Git修改远程仓库地址
背景公司路由罢工了,代码服务器地址临时换了下。相应的git工程远程仓库地址也需要换下。代码git版本1.9.5,效果:修改远程仓库地址$ git remote set-url origin git@192.168.0.123:/home/gits/test.gitgit给出的帮助git remote set-url [--push] <name> <newurl> [<oldurl>]git re原创 2016-03-03 09:14:30 · 627 阅读 · 0 评论