
Git
43612538
世间繁华,不过过眼云烟。淡泊明志,宁静致远。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git仓库迁移,并保留提交历史
假设新的仓库地址是https://xxx.git在已有的项目目录下执行:git remote remove origin // 删除之前的远程地址git add remote origin https://xxx.git //添加新的远程地址git push https://xxx.git --all // 将所有数据重新提交到远程地址git push https://xxx.git --tags // 将推送历史也提交上去...原创 2021-07-15 09:29:04 · 260 阅读 · 0 评论 -
使用git将项目上传到github或者gitee
首先你要有账号,安装好了git然后新建一个仓库接下来输入下面的命令就okgit clone 地址 # 克隆下来git add .git commit -m '提交信息'git push就这样就行了 如果你修改过密码git config --system --unset credential.helper清除本地的用户名 密码 在git push 就行了...原创 2020-10-22 20:54:53 · 161 阅读 · 1 评论 -
Git版本回退命令
git reset --hard commit_id原创 2019-12-17 19:15:42 · 697 阅读 · 0 评论 -
Git的基础命令
$ git config -l 查看配置信息$ git config --global -l 查看全局配置信息配置全局信息:用户名和邮箱$ git config --global user.name 'xxx'$ git config --global user.email '[email protected]'$ git init 创建本地Git仓库$ git add xxx 把某一...原创 2019-12-17 11:37:42 · 165 阅读 · 0 评论