让你快速上手Git
git init
git status
git add (file) or git add .
git diff
git reset
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
git commit -m ""
git remote add origin (adress)
touch .gitignore and add files to .gitignore
git rm --cached (file)
git branch (name)
git checkout (name)
git merge (name)
git branch -a
git branch -d (name) or -D(Mandatory deletion)
git push --set-upstream
博客内容遵循 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议 本文永久链接是:https://cloud.tencent.com/developer/article/1612563 转载时,请注明文章来源!!!