寒玉 Blog
  • Home
  • Books
  • About Me
  • Categories
  • Tags
  • Archives

GIT


GIT常用命令

远程仓库命令

  • 检出远程仓库 git clone git://github/jquery/jquery.git
  • 查看远程仓库 git remote -v
  • 添加远程仓库 git remote add [name] [url]
  • 删除远程仓库 git remote rm [name]
  • 修改远程仓库 git remote set-url --push[name][newUrl]
  • 拉取远程仓库 git pull [remoteName][localBranchName]
  • 推送远程仓库 git push [remoteName][localBranchName]

Git重置到固定版本

git reset --soft 83ab9932edbe2b78f88668b7d15061747bb5514f

Git PUSH TAG

git push origin 4.3.2 //push tag 4.3.2 到远程

  • « Google Gunice
  • Kafka背景及架构介绍 »

Published

6 27, 2017

Category

SVN

Tags

  • git 1
  • Powered by Pelican. Theme: Elegant by Talha Mansoor