博客
关于我
git的使用技巧汇总
阅读量:220 次
发布时间:2019-02-28

本文共 1090 字,大约阅读时间需要 3 分钟。

Git??????????

????

???????????

git config --global user.name "test"git config --global user.email "test@test.com"

????

??????????

git status

????

???????

git branch

???????

git branch -r

???????

git branch -a

??????????

git checkout -b dev origin/master

?????

??????????

git add index.php

????????????

git add -A

?????????

git rm --cached index.php

?????

???????????

git commit -am "new"

????

????????????

git pull origin master

????

????????????

git merge dev

????

?????????????

git push origin master

????

???????

git tag

???????

git tag -a v0.0.1 -m "version 0.0.1"

???????

git push origin --tag

???????

git tag -d v20200101

????

1. ????

?????????

git:remote: HTTP Basic: Access denied fatal: Authentication failed

???????????????????????????????

git config --system --unset credential.helper

2. ??pull/push?????????

???????????????

git config --global credential.helper store

??????????????????????

3. ??SSH??

??SSH???

ssh-keygen -t rsa -C "test@test.com"

????????id_rsa?????id_rsa.pub???????????????

C:\Users\Administrator.ssh?C:\Users\user.ssh

??

??????Git?????? SSH ?????????????????

转载地址:http://mxdp.baihongyu.com/

你可能感兴趣的文章
Redis 集群搭建详细指南
查看>>
php中的session用法
查看>>
php之aop实践
查看>>
PHP之APC缓存详细介绍(转)
查看>>
php之引用
查看>>
php九九乘法表加粗,PHP九九乘法表
查看>>
PHP二维数组将重复键值合并重组成三维数组
查看>>
PHP二维数组转换为一维数组
查看>>
PHP交换两个变量值
查看>>
PHP代码格式化工具phpcf常见问题解决方案
查看>>
PHP使用curl multi要注意的问题:每次使用curl multi同时并发多少请求合适
查看>>
php判断复选框是否被选中的方法
查看>>
PHP加密与安全的最佳实践
查看>>
php反射api
查看>>
php取当天的最后一秒_Docker快速搭建PHP开发环境详细教程
查看>>
php后台的在控制器中就可以实现阅读数增加
查看>>
php命令行生成项目结构
查看>>
PHP学习总结(12)——PHP入门篇之变量
查看>>
PHP学习总结(14)——PHP入门篇之常用运算符
查看>>
PHP学习总结(4)——PHP入门篇之PHP计算表达式
查看>>