当前位置: 移动技术网 > 科技>操作系统>windows > Git的一些基本使用方法

Git的一些基本使用方法

2018年07月27日  | 移动技术网科技  | 我要评论

普京女友为其生子,土鳖虫的功效,教师资格证现场确认

使用git的基本操作

1.Git的克隆

git clone https://XXXXXXXXXXXXXXXXXXXXX

2.拉取

git pull

3.查询状态

git status

4.添加

git add .

5.提交

git commit -m '备注内容'

6.推送

git push

7.查询分支

git branch

8.切换分支

git checkout 

8.查看配置信息

git config -l 

9.修改email和name

git config --global user.name '***'
git config --global user.email '***@***.com'

10.强制提交

git push origin master -f 

11.查看提交记录

git log

12.版本回退

git log --prety=oneline 
git reset --hard head~n
head~ 上一个版本
head~~上两个版本
head~n 上n版本
git reset --hard 版本号

13.查看版本

git --version

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网