git常用指令

发布时间 2023-11-23 19:09:07作者: 败人两字非傲即惰
git clone https://gitee.com/CcMdFk/the-gobang-game-of-cc-md-fk.git
git pull https://gitee.com/CcMdFk/the-gobang-game-of-cc-md-fk.git
git pull --rebase https://gitee.com/CcMdFk/the-gobang-game-of-cc-md-fk.git
git add .
git status
git commit -m "add "
//解决冲突
git rebase --continue
git push https://gitee.com/CcMdFk/the-gobang-game-of-cc-md-fk.git master
git status
git@github.com:0ppp12/Tetris.git
---------------------
git
git config --global xuweihui
git config --global user.email q233981@163.com
git init
git status
git add hello.txt
git rm --cached hello.txt
git commit -m "first commit" hello.txt
git reflog
git log
git branch  -v
git branch hot-fix
git checkout hot-fix
git merge hot-fix
git remote -v
https://github.com/0ppp12/git-demo.git
创建别名
git remote add git-demo https://github.com/0ppp12/git-demo.git
git push git-demo master
git pull git-demo master
git clone https://github.com/0ppp12/git-demo.git
! [rejected] master -> master (fetch first)
git pull --rebase origin master
Failed to connect to github.com port 443 after 21064 ms: Connection refused
git config --global http.sslVerify "false"
ssh-keygen -t rsa -C 2339819208@qq.com
git@github.com:0ppp12/git-demo.git
git pull git@github.com:0ppp12/git-demo.git master
Personal access tokens of 0ppp12
girhubtaken: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
gitee token:adb5fd98eb6fc9d78ca90c4c18879ab1