Git 基本操作
约 259 字
Git 基本操作
初始化仓库
git initOR
git clone <repository-url>基本的本地操作
git statusgit add <file>git add .git commit -m "commit message"git loggit rm <file>git rm -r <folder>分支管理
git branchgit branch <branch-name>git checkout <branch-name>git checkout -b <branch-name>git merge <branch-name>git branch -d <branch-name>远程操作
git remote -vgit remote add origin <repository-url>git push origin <branch-name>git pull origin <branch-name>