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

你可能感兴趣的文章
python基础变量之---集合
查看>>
python基础变量之---字典
查看>>
python基础变量之---列表
查看>>
python基础变量之---元组
查看>>
python基础内容_Python基础入门必须了解的
查看>>
Python基础之面向对象2(封装)
查看>>
Python基础之给函数增加元信息
查看>>
python基础之字符编码
查看>>
python基础之多线程与多进程(二)
查看>>
Python基础之基本数据类型一《数字与字符串》
查看>>
python基础之变量---总纲
查看>>
Python基础之列表
查看>>
Python基础之Python环境搭建
查看>>
python基础之--面相对象--OOP基本特性
查看>>
python基础之--迭代器和生成器及异常处理
查看>>
python基础之--包和模块
查看>>
python基础之---面向对象--属性和方法
查看>>
python基础之---运算符
查看>>
python基础之---语句
查看>>
python基础之---正则表达式
查看>>