Git

git文档


常用指令:

配置:

git config --global user.name "yourName"

git config --global user.email yourEmail


创建项目:

git init

git clone https://github.com/yourName/repo.git


基本快照(basic snapshotting??)

git add

git status

git diff

git commit

git reset

git rm

git mv


分支与合并

git branch

git checkout

git merge

git mergetool

git log

git stash

git worktree


更新项目

git fetch

git pull

git push

git remote

git submodule


检查与对比

git show

git log

git diff

git shortlog

git describe


修补:

git apply

git cherry-pick

git diff

git rebase

git revert


改错:

git bisect

git blame

git grep


GitHub直接生成页面链接:

官方文档

点击所要生成链接的页面所在的仓库—>settings—>找到Github Pages—>Source 选择master branch—>点击右面的Save

完成以上步骤即可看到生成的链接:


IFE是创建的仓库名,若要访问该仓库下如下图所示路径的HTML文件,浏览器中输入https://maymaymaymaymay.github.io/IFE/animation/task1/index.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值