当前位置:   article > 正文

git使用命令

git使用命令
git init
git config --global user.name "xxy"
git config --global user.email "*************@qq.com"
git remote add origin https://********.git
git config --system --unset credential.helper
git config --global hhtp.emptyAuth true
git pull
git branch 
git branch -a
git checkout -b xxy origin/xxy
删除本地已合并的分支
git branch -d/-D xxy
删除远程分支
git push origin --delete xxy

git add *
git commit -m "comment"
git push origin xxy:xxy

#git 分支操作
git submodule add https://******/submodule.git
git clone --recurse-submodules <repository_url>
##或者
git submodule init
git checkout dev
git submodule update

cd submodule_dir
git checkout submodule_version
cd ..
git commit -m "submodule change"
#更新远程分支
git remote update origin --prune
git remote update origin -p
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/741641
推荐阅读
相关标签
  

闽ICP备14008679号