第一步安装:
1.$ sudo add-apt-repository ppa:git-core/ppa
2.暂停时按Enter继续
3.sudo apt-get update
4.sudo apt-get install git
5.git –version
第二步上传本地项目到github:
1.在github create a repositories,copy SSH
2.git init demo_repositories
3.cd /demo_repositor
4.gedit README
5.cp -r /src .
6.git add README
7.git add .
8.git commit -m “creat a git project”
9.git remote add origin SSH(you copy ssh)
10.git push -u origin master
sucessful!
具体安装细节参考廖雪峰:
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000
ubuntu安装细节参考:
http://blog.csdn.net/yhl_leo/article/details/50760140
windows安装细节参考:
https://www.cnblogs.com/specter45/p/github.html
errors:
1.fatal: remote orgin already exists
git remote rm orgin
2.添加SSH key
https://www.cnblogs.com/qcwblog/p/5709720.html
Git使用教程
最新推荐文章于 2023-04-09 14:53:43 发布