git学习1

来源:互联网 发布:云计算的概念 编辑:程序博客网 时间:2024/05/01 21:02

git基本使用

下载安装git for windows(mysysGit)

$ git clone git-repository-uri . : 拷贝一个git仓库到当前目录

$ git add xxx.jsp : 将一个修改后的文件加入到缓冲区中

$ git commit : 将项目提交到本地

$ git push origin master : 将项目推送到原始仓库的master分支


eclipse中的git:

import - projects from git - 选择该选择的,下一步下一步,注意有一项:

如果远程仓库没有eclipse项目结构,则需选择Use the New Project wizard或者Import as general project

如果远程仓库已经有eclipse项目结构,则需选择Import existing projects.


原创粉丝点击