常用的git命令

git pull  获取最新

 

 

git add . 提交所有

 

 

git commit  -m “我的注释”

 

 

git status 查看状态

 

 

git push origin master 提交到主分支上

 

 

git checkout fileName 

 

 

git add -u 修复

 

 

git checkout ~~   切换分支

 

//以下为错误问题与解决方案

fatal: multiple stage entries for merged file 'filePath/~~~’

rm .git/index

 

git add -A

git commit

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-06-22
  • 2021-11-30
  • 2021-08-21
  • 2021-09-23
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2021-10-31
  • 2021-09-26
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案