1.安装git,可从 http://www.bootcss.com/p/git-guide/下载git


2.在github上创建仓库,注意不勾选Initialize this repository with a README

如何在github上创建仓库,并将本地的文件上传到对应的远程仓库           如何在github上创建仓库,并将本地的文件上传到对应的远程仓库
3.创建SSH公钥,参考http://www.cnblogs.com/calence/p/6728499.html

 

4. 在本地创建用于存放代码的文件夹,此处命名跟Github上远程仓库名称一致。


5.进入本地仓库,在终端中输入git init,在此文件夹中包含.git的文件,表示初始化成功。

 

6.将本地仓库的文件推送到github远程仓库


git add "BinaryTree_Order.cpp"
git commit -m "BinaryTree_Order.cpp commit"
git remote add origin https://github.com/Calence/algorithm.git
git push -u origin master

相关文章:

  • 2021-05-31
  • 2021-06-02
  • 2021-11-30
  • 2022-12-23
  • 2021-06-23
  • 2021-08-15
  • 2021-07-22
  • 2021-09-22
猜你喜欢
  • 2021-05-12
  • 2021-11-28
  • 2021-11-26
  • 2021-04-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案