![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
smlr
曾想仗剑走天涯
展开
-
Git 常用操作
在码云上新建一个仓库 在本地选择仓库目录,执行 git clone URL,把远程仓库拉取到本地 把之前从github上摘取的项目文件夹复制到上面的仓库地址 执行 find . -name ".git" | xargs rm -rf 删除之前的git信息 执行 git status 执行 git add . 执行 git config --global user.email "*...原创 2020-02-04 19:07:08 · 174 阅读 · 0 评论 -
从一个git仓库拷贝到另一个git仓库
1、从原地址克隆一份裸版本库,比如原本托管于 GitHub。 git clone --bare http://github....(原始仓库地址) 2、进入克隆下来的目录 cd project.git(project即为你的项目名称) 3、以镜像推送的方式上传代码到新的仓库地址。 git push --mirror http://...(目标仓库...转载 2019-11-22 16:07:02 · 869 阅读 · 0 评论