把本地的项目代码初始化到git仓库
cd /path/to/your/project# 在当前目录创建新的仓库
git init# 添加当前目录下的所有文件到暂存区
git add .# 添加commit message
git commit -m "Initial commit"# 关联远程仓库
git remote add origin https://github.com/username/repository.git# 更改默认仓库(看是否需要)
git remote set-url origin https://github.com/username/new-repository.git# 推送到远程仓库
git push# 查看远程仓库地址
git remote -v