Home  >  Q&A  >  body text

github新手有点疑问,求各位大侠指教

本人第一次用github,照着百度瞎整总算把本地文件上传到了github上了,可以在线预览效果了,可是很快发现一个问题,就是我在本地修改之前那个上传的文件,该如何提交上去,试了好久,发现github上没有任何改变

这是本地那个文件夹

然后我右键 GUI Here之后弹出这个窗口

需要说明一下,不知道是不是因为安装了svn的缘故,我鼠标右键只出现两个git的功能操作,还是说本身只有这两个

现在问题是我修改了本地fdj文件里的内容


线上github刷新没有改变,到底要怎么同步修改,求老手指导

淡淡烟草味淡淡烟草味2713 days ago809

reply all(9)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:35:34

    It is recommended to use TortoiseGit. Although I also have Git GUI/Bash installed, the former is more useful for novices.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:35:34

    Use git, it’s simple and fast. Don’t blindly covet the GUI, you will get poisoned.

    reply
    0
  • 某草草

    某草草2017-05-02 09:35:34

    stage -> commit -> push
    Are you sure you followed these three steps? You can see in the Git GUI that the files you modified are still in unstaged status

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:35:34

    Have you done both commit and push?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:35:34

    Git add
    Git commit
    Git push

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:35:34

    Did you write the push correctly?

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:35:34

    Right click->Git Bash Here, after the command window pops up, git status查看你当前的分支状态,看到你修改的文件之后git add 你修改要上传的文件,然后git commit -m '提交注释',最后git push origin 你的分支
    我操作的实例如下

    你看我修改了master分支下的index.html后,分别执行了git add index.html添加修改文件;git commit -m 'UPDATE PAGE'提交文件日志;git push origin master提交到远程masterbranch.

    If you want to check what branch you are currently on, just execute itgit branch. Hope it helps you

    reply
    0
  • 某草草

    某草草2017-05-02 09:35:34

    The answers given by others may not be suitable for you. Please read the official documentation first:
    git-scm

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:35:34

    tortoisesvn is already installed, let’s install tortoisegit by the way, it’s simple and practical

    reply
    0
  • Cancelreply