Git-仓库初始化问题

If you want to simply clone this empty repository then run this command in your terminal.

git clone git的地址

If you already have code ready to be pushed to this repository then run this in your terminal.

cd existing-project
git init
git add --all
git commit -m 'Initial Commit'
git remote add origin git的地址
git push origin master

If your code is already tracked by Git then set this repository as your "origin" to push to.

cd existing-project
git remote set-url origin git的地址
git push origin master

你可能感兴趣的:(Git-仓库初始化问题)