windows-git 使用

1.先安装 一个git-bash

2.初始化本地仓库  :打开git-bash ,进入到一个项目(test_project)的目录第一级,直接执行  git init

4.与远程github代码库链接  ,现在github创建一个同名的仓库(不要自定自动创建readme文件,因为要保持本地仓库和远程仓库初始文件一样),然后 git remote add origin https://github.com/jsionhuang/test_project

3.将该项目的全部文件提交到git本地代码库  git add *     然后  git commit -m "第一次提交"(先与远程代码库进行链接)

5.将本地的代码上传到github    git push origin master

猜你喜欢

转载自blog.csdn.net/huangmengfeng/article/details/80968472