Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 421 Bytes

Github 基础操作.md

File metadata and controls

30 lines (27 loc) · 421 Bytes

Init

git config user.name USERNAME
git config user.email EMAIL

Push

git pull
git add .
git commit -m "HELLO"
git push origin master

Reset

git reset --hard commitID
git push origin HEAD --force

Branch

git branch BRANCH_NAME
git checkout BRANCH_NAME
git push origin BRANCH_NAME
// Delete Local Branch
git branch -d BRANCH_NAME
// Delete Github Branch
git push origin :BRANCH_NAME