GIT

来源:互联网 发布:唐山d知美造型 编辑:程序博客网 时间:2024/06/14 22:27
  • git help <comment>
  • git config –global user.name “John EveryThing”
  • git config –global user.email xx@xx.com
    • local
    • system
    • global
  • git init
  • git status
  • git add
    • git add .
    • .git-ignore文件
  • git rm –cached
  • git rm
  • git rm $(git ls-files –deleted)
  • git commit -m ‘something’
  • git commit -a -m ‘something’
  • git log
  • git diff
  • git diff -cached
  • git checkout
  • git reset HEAD < file >
  • git checkout HEAD –< file >
  • 总结
    • 这里写图片描述
  • git branch <>
  • git branch -d <>
  • git branch -v
  • git checkout -b < branchName >
  • git reset
  • git reset –hard
    • soft
    • mixed
    • hard
  • git reflog
  • git stash
  • git merge
  • -
0 0
原创粉丝点击