![](https://file.jishuzhan.net/article/1768368486079270914/c502de4e4d14ec9127c364138b951705.webp)
git reset
git reset --hard HEAD
git reset tag
git reset
git stash
git stash pop
git checkout filename
git remote
git remote -v
git remote add origin https://some-git-remote-url
git push
git push -u origin master
git push origin branchname
git pull
git pull origin branchname
git fetch && git merge origin/remote-branch-name
git fetch -p
git branch -a