Git使用总结

Git安装

验证Git安装git --version

初始化本地仓库

1
2
3
4
5
6
7
8
git clone http://......
cd <repository>
git config --global user.name "Your Name"(可选)
git config --global user.email "your.email@example.com"(可选)
git remote add <remote> http://.....
git add .
git commit -m "information"
git push <remote> <branch>