GitHub把自己整个文件夹上传  建立和上传SSH Key

然后开始使用Git Bash

Git要求每台电脑都要有自己的用户名(User Name)和邮箱(Email)

所以我就自己设置下,这些均为黑框框的操作,也就是命令行,但是不要怕,我们还是有图形界面的

git config --global user.name "your name"
git config --global user.email "your email"

找到你这台电脑的管理员账户

文件夹下有这个

GitHub把自己整个文件夹上传
 建立和上传SSH Key

用txt打开id_rsa.pub

然后到Github setting把这个填进去,Title随意

GitHub把自己整个文件夹上传
 建立和上传SSH Key

在自己电脑里找到自己所要上传的文件夹,右键Git Bash here

git init

其文件夹下会建立一个.git文件夹

git remote add origin git@github.com:你的账户/你的仓库名称.git
git remote add origin git@github.com:xzzxqinlihui/eg.git

推荐先把两边同步下

git pull --rebase origin master
git pull origin master
git add .
git commit -m 'first_commit'
git push origin master