git
星期二的风
一路向前
展开
-
git 使用指令
…or create a new repository on the command line echo "# Cpp-Learning-note" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/Vista-zou/Cpp-Learning-note.git git push -u or原创 2021-06-02 22:54:08 · 53 阅读 · 0 评论 -
如何将本地项目上传至GitHub
将本地文件夹上传至GitHub 第一步:选择目标项目(本地文件夹) 第二步:在Git Bash的命令行中输入 git init $ git init 目的是将这个文件夹变成Git可管理的仓库,此时文件夹中会多一个 .git隐藏文件(显示隐藏文件即可见) 第三步 远程连接你的Github仓 $ git remote add origin [email protected] : xxx/xxx.git 第四步 用push上传到你的Github仓 $ git push -u origin master ...原创 2021-03-13 14:47:40 · 164 阅读 · 0 评论