search

Home  >  Q&A  >  body text

java - git 如何使用命令提交代码

伊谢尔伦伊谢尔伦2770 days ago1059

reply all(11)I'll reply

  • 黄舟

    黄舟2017-04-18 10:40:37

    git add --.
    将所有的改变添加
    git commit -m "提交的信息,可有可无。"
    如果是本地的话这样就可以了

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:40:37

    Recommended TortoiseGit

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:40:37

    Please check the documentation yourself for this kind of problem. If you don’t understand the principles of git, just use the visualization tool

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:40:37

    Currently you need this: http://rogerdudler.github.io/...
    If you encounter conflicts or something, you need this: http://www.liaoxuefeng.com/wi...

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:40:37

    git commit is transferred to the local .git directory, git push is transferred to the remote branch (default master), pull download
    1. git commit first
    2. pull (change if there is a conflict)
    3. push
    seems to use egit Plug-in, simple and convenient. . .

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:40:37

    I recommend that newcomers first use visual tools to operate, or use visual tools to compare and type commands.
    The principle of git is not that intuitive. It is better for newcomers to have a reference process to understand. If there is a deviation in understanding but there is no problem in execution, bigger problems may arise later.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:40:37

    Seriously, for problems that can be searched online, please ask Du Niang. If you can’t solve the problem, come to SF again

    Liao Xuefeng’s git tutorial

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:40:37

    Are you still asking this? ?

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:40:37

    git pull origin master
    git add .
    git commit -am"YOUR COMMIT INFOMATION"
    git push -u origin master

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:40:37

    Who still uses commands? Nowadays they all use graphical interfaces. You're wasting your time.

    reply
    0
  • Cancelreply