git常用命令
2020-04-26 本文已影响0人
西亭月圆
# local
git init
git add .
git commit -m 'first commit'
# push remote
git push https://xxx/xxx.git master
git remote add xxx https://xxx/xxx.git # set alias
git remote -v # 列出已添加别名的远程仓库地址
git remote rm xxx # 删除已添加别名的远程仓库地址
# pull to local
git clone https://xxx/xxx.git