This is my first time using github. I followed Baidu’s instructions and finally uploaded the local file to github. I can preview the effect online. However, I soon discovered a problem. I modified the previously uploaded file locally. How to submit? After trying for a long time, I found that there are no changes on github
This is the local folder
Then I right-click GUI Here and this window pops up
I need to explain, I don’t know if it is because of the installation of svn, but only two git functional operations appear when I right-click the mouse, or if I only have these two
The problem now is that I modified the content in the local fdj file
There is no change in the online github refresh. How to synchronize the changes? Please give guidance from an expert
曾经蜡笔没有小新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.
曾经蜡笔没有小新2017-05-02 09:35:34
Use git, it’s simple and fast. Don’t blindly covet the GUI, you will get poisoned.
某草草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
淡淡烟草味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
提交到远程master
branch.
If you want to check what branch you are currently on, just execute itgit branch
. Hope it helps you
某草草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
我想大声告诉你2017-05-02 09:35:34
tortoisesvn is already installed, let’s install tortoisegit by the way, it’s simple and practical