0
点赞
收藏
分享

微信扫一扫

react-json-view 展示json数据

陈情雅雅 2023-10-31 阅读 15
git
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@gitee.com:osusu/gitee_test.git
git push -u origin "master"

查看当前的远程仓库

git remote -v

在这里插入图片描述

删除远程仓库

git remote rm origin

查看分支

git branch

创建分支

git branch <name>

切换分支

git checkout <name>或者git switch <name>

创建+切换分支

git checkout -b <name>或者git switch -c <name>

合并某分支到当前分支

git merge <name>

删除分支

git branch -d <name>

查看历史信息

git log

在这里插入图片描述

回退指定版本

git reset --hard HEAD^        回退到上个版本
git reset --hard commit_id    退到/进到 指定commit_id

在这里插入图片描述

举报

相关推荐

0 条评论