Skip to content

Git

Work Flow

工作区 => 暂存区 => 远程仓库

Setting up

git init

git init <directory>

git clone

git clone <repo> <directory>

Saving changes

git add

git add <directory>/<filename>
git add .

git commit

git commit -m <commit message>

git push

git push origin main

Syncing

git push

git push <remote> <branch>

git pull

git pull <remote>

Inspecting

git status

git status

git log

git log

评论区

如果有什么问题或想法,欢迎大家在下方留言~