随笔分类 -  Git

摘要:1 git remote rm origin // 移除本地关联 2 git remote add origin git@github.com/example.git // 添加线上仓库 3 git push -u origin master // 注意:更改后,第一次上传需要指定 origin 阅读全文
posted @ 2020-09-18 17:22 隔壁的小明 阅读(7189) 评论(0) 推荐(1)
摘要:首先执行 ‘git branch -r’ 查看线上的所有分支 例如像要拷贝线上分支 ‘origin/online’ 到本地本地分支 ‘online’,则执行 ‘git checkout -b online origin/online’ 阅读全文
posted @ 2020-06-02 17:21 隔壁的小明 阅读(891) 评论(0) 推荐(0)
摘要:git config --global credential.helper store 待下一次提交代码的时候,输入了正确的用户名和密码,之后 就不需要输入用户名密码 阅读全文
posted @ 2020-05-28 18:09 隔壁的小明 阅读(1643) 评论(0) 推荐(0)
摘要:· 获取github节点 地址:https://www.ipaddress.com/ · 找到本机hosts文件 路径:C:\Windows\System32\drivers\etc · 添加不同域名对应的节点,并保存 192.30.253.112 github.com 185.199.108.15 阅读全文
posted @ 2020-03-19 15:15 隔壁的小明 阅读(594) 评论(0) 推荐(0)
摘要:1、查看本机公钥; 打开git bush,执行 cd ~/.ssh 进入.ssh文件夹(C:\Users\Administrator\.ssh) 执行 ls 命令,查看列表 执行 cat id_rsa.pub 或者 vim id_rsa.pub 查看id_rsa.pub这个文件,出现的一串代码即是公 阅读全文
posted @ 2020-03-16 16:14 隔壁的小明 阅读(1660) 评论(0) 推荐(0)