Git server building

build a git warehouse on the server, and then git clone in any directory after all the operations are completed, and then touch a file. After git add and git commit, the output git log; shows that the submission was successful, with the corresponding submission information, and then git clone in another place. There is no file I submitted before. Why?

Jun.22,2022

you need git push. Just push the modified file to the server.


you need git push to be pushed to the remote server, and git commit is submitted to the local workspace


did you clone it locally?


Git is distributed version management. Both your local and remote version libraries will be available, so the Commit operation will first be pushed to your local version library, and then Push to the remote version library (there can be more than one remote library, and not necessarily the same status as your local library). Push also has a corresponding operation called Pull, which is equivalent to pulling a relatively new part of the remote library locally; then if there is nothing local, it is equivalent to copying the remote library to the local area with a full tail.
by the way, I wonder if you have prepared a remote library? For example, Github, domestic Coding.net are free hosting sites, you can find tutorials to have a look. In addition, remote libraries are not required, and the effect of copying folders directly from a local version library project is the same (in principle, as long as you have a hidden ".git" folder, which is the git version library of the project).


your git add,git commit is just submitted to the local git repository. You need git pull,git push to submit the local modification record to the remote git repository. In this way, if you git clone the remote git repository somewhere else, you will have the files you submitted before

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41fcc-43637.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41fcc-43637.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?