博客
关于我
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/

你可能感兴趣的文章
php教程之php空白页的原因及解决方法
查看>>
PHP数据库操作
查看>>
PHP数据文件过大,导致PHP加速器eaccelerator在PHP5.2版本下崩溃
查看>>
RabbitMQ - 死信、TTL原理、延迟队列安装和配置
查看>>
PHP数据访问的多重查询(租房子查询)
查看>>
RabbitMQ - 如保证消息的可靠性?(消息确认、消息持久化、失败重试机制)
查看>>
RabbitMQ - 基于 SpringAMQP 带你实现五种消息队列模型
查看>>
php数组函数分析--array_column
查看>>
php数组去重复数据的小例子
查看>>
php数组实现:哈希 +双向链表
查看>>
PHP数组排序函数array_multisort()函数详解(二)
查看>>
php数组的几个函数和超全局变量
查看>>
PHP文件上传详解
查看>>
PHP文件锁
查看>>
php文本框输入制定文本,php – 当用户没有向文本框输入任何内容时...
查看>>
PHP时间戳和日期相互转换操作总结
查看>>
php时间戳知识点,php 时间戳函数总结与示例
查看>>
php更新数据库失败,php – 无法更新MySQL数据库
查看>>
php机器人聊天对话框,基于AIML的PHP聊天机器人
查看>>
PHP查找数组中最大值与最小值
查看>>