intellij idea 上使用git提交代码

来源:互联网 发布:昆山远洋数据怎么样 编辑:程序博客网 时间:2024/05/16 14:50

git提交原理

  • git本地提交需要:
    1.git add
    2.git commit

  • git提交推送到服务器:
    1.git pull (origin 分支名)
    2.git push (origin 分支名)

idea图示

首先提交改动


然后拉取更新

  • 1.直接update project
    update project

  • 2.在git选项下选择git pull
    git pull
    pull changes

最后推送本地改动到远程服务器


代码提交完成!

0 0