GitHub是公有的遠程倉庫,Gitlab是私有的遠程倉庫。
git add file
git commit -m "add file"
git mv filea fileb
git log? ?顯示提交記錄
git log --oneline? 一行的簡略信息顯示
git log --oneline --decorate? ? ? ?顯示當前指針
git reset --hard 3fa9cb3? ? ? ?恢復到對應指針的版本?
?git branch testing 新增分支
?git branch 查看分支
git checkout testing 切換分支
git branch -d 刪除分支
git merge 分支ming? 合并分支
git?tag 打標簽
git tag -d v1.0 刪除標簽
git show v1.0 查看標簽
?
參考視頻:
3.git常用的基礎命令_嗶哩嗶哩_bilibili