Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 466 Bytes

File metadata and controls

24 lines (24 loc) · 466 Bytes
git config --global user.name ""
git config --global user.email "@"
git init

git add <file>
git commit -m ""
git status
git diff <file>
git reset --hard commit_id | HEAD~n | HEAD^1 | HEAD
git log
git reflog
git checkout -- <file>
git reset HEAD <file>
git rm

git branch
git branch <name>
git checkout <name>
git merge
git branch -d <name>

git remote add origin <address>
git push origin <branch>
git push -u origin <branch>