Skip to main content

One post tagged with "git"

View All Tags

Git 的使用

· One min read
Lex
Front End Engineer @ Baoxiaohe

branch#

  • link 链接远端仓库
git remote add origin remoteAddress
  • push 到远程分支
git push origin remoteBranchName:localBranchName
  • delete branch locally
git branch -d localBranchName
  • delete branch remotely
git push origin --delete remoteBranchName

fetch#

  • 拉取远程分支到本地
git fetch origin remoteBranchName:localBranchName