随笔分类 - git
摘要:##远程仓库路径查询 git remote -v ##添加远程仓库 git remote add remote_name url git remote set-url remote_name url ##本地删除 git branch -D branch_name ##删除指定的远程 git rem
阅读全文
摘要:// 官网地址:https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%AD%90%E6%A8%A1%E5%9D%97 // 添加一个子模块 // remote 远程仓库 // path 本地存放路径 git submodule add r
阅读全文
摘要:``` // 在git项目文件夹内右击Git Bash Here // git常用命令 // 没有分支的情况 1. git pull // 将线上代码同步到本地,注意,会覆盖本地代码 2. git add . // 可以提交未跟踪和修改文件,但是不处理删除文件。 3. git commit -m "给这次提交一个说明" 4. git push // 将本地代码提交到线上 // 项目创建分支 按模块
阅读全文
摘要:// 1.注册码云帐号 // 2.帐号邮箱绑定 // 3.下载安装git https://git-scm.com/ // 4.桌面右击Git bash here // 5.ssh-keygen -t rsa -C "xxxxx@xxxxx.com" //你的邮箱地址 // 6.cat ~/.ssh/
阅读全文