标签:Git

共 1 篇文章

Git

1. 本地初始化git项目并添加远程仓库

cd newProject
git init
git remote add origin url # url为项目的远程仓库路径
git push master origin

2. Git设置

全局设置(--global):

git config --global user.name "Goclis Yao"
git config --global user.email "goclisyyh@gmail.com"
git config --global branch.master.remote origin
git config --global branch.master.merge refs/heads ...
阅读全文