GitHub把自己整个文件夹上传

然后开始使用Git Bash

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

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

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



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

git init

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

git remote add origin [email protected]:你的账户/你的仓库名称.git

推荐先把两边同步下

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

你可能感兴趣的:(GitHub把自己整个文件夹上传)