git代码首次提交

1.打开Git  Bash,将目录切换到你的项目所在的文件夹git

例如你有一个项目Demo,你就切换到.../Demo目录下ide

2.运行命令 git init .   注意后面有一个点idea

3.运行命令 git pull git@git.oschina.net:xxxx/Demo.git .net

4.运行命令  git add -A .  注意后面有一个点rem

5.运行命令  git commit -am "对代码的有关说明"it

6.运行命令   git push git@git.oschina.net:xxxxxxx/Demo.git     masterast

7.在idea中增长remote远程地址便可图形化操做项目

相关文章
相关标签/搜索