frontend
Git Usages
2020/03/03 0

git 常用命令

# How to update GitHub forked repository(opens new window)

git remote add upstream git://github.com/whoever/whatever.git

# git delete branch

## remote
git push origin --delete branch_name

# local

git branch -D branch_name

# reset
git reset --hard commit

git push -f origin branch

# tag

# 新增标签并添加注释
git tag -a v1.0.0 -m 'anotate'

# 追加标签
git tag -a v0.9 85fc7e7

# decorate
git log --oneline --decorate --graph