GitHub-将本地仓库与远程仓库连接
//在本地创建一个新的仓库
cd ~/ConstructBinaryTree
git init
//编写.gitignore文件
touch .gitignore
vim .gitignore
/*内容:
[plain] view plaincopy
#文件
CMakeLists.txt
*.out
.DS_Store
.gitignore
#文件夹
cmake-build-debug/
*/
git remote add origin git@github.com:Evan-Choo/ConstructBinaryTree.git
git push --set-upstream origin master