I haven"t been using Git for a long time. usually when one learns by writing a project , he feels that using Git for version control is a bit of a waste of time.
do you usually do version control when you write your own projects? And why?
I haven"t been using Git for a long time. usually when one learns by writing a project , he feels that using Git for version control is a bit of a waste of time.
do you usually do version control when you write your own projects? And why?
Yes, some editors come with git versioning tools and are not particularly time-consuming. I usually submit a version after completing a main module. It's not just your own code that can go wrong. The demand may also change, and when the demand is changed, it will be better to fall back.
this is a problem of work management habits. A project done by a person can record git as a project log, which will be troublesome for people who are not used to keeping a log, but for those who have the habit of keeping a log, it is almost impossible to use GIT membership fee time, which is necessary.
I think the habit of logging is necessary for software development, so GIT is also necessary, no matter how many people work on the project. Maybe it's not necessary for you to use GIT, so you should also develop your own logging habits, otherwise you will seem out of place when you join the development team in the future.
of course there is a need. No one can guarantee that this thing suddenly wants to be changed back. Right. Can you ctrl+z
what I just changed. I changed it a month ago. How do you find it?
with Git, one backup a day. You can also force yourself to write a summary. One function, one version. I want to use that.
you don't think it's necessary, waste time, don't use it, if the tool is your encumbrance, why drag you down.
Learning, it is necessary to minimize the cognitive load, the focus is on the project itself, and everything else is secondary.
wait until you feel you need it, and when you have the need to use it, it's not too late to use it. It's just a tool. It's not about getting a wife. If you don't marry now, you won't have a chance in the future.
it seems that your understanding of version control and the use you use in your work is not deep, whether it is a person or a team, there is no doubt that version control is necessary. Not to mention the benefits of multi-person collaborative development using version control tools. Briefly talk about the benefits of one-person development and use.
1, easy to trace history and roll back
2, removable USB disk
3, backup
4, people can't avoid collaboration, so consider it as learning
5, devops, continuous integration, etc. all need git and other tools
1. Every time you add new features / fix bug, you can feel free to do it boldly, but fall back
2. For others to take over your project, you can see the historical progress of the project by looking at the historical submission. Of course, commit log should write well
3. As learning Git
4. It is better to switch from push to server, and the working environment can be switched quickly
is a little bit necessary.
when you write your own projects, you often have a flash of refactoring framework and so on.
if you have Git, you can just open a branch and spoil it. If you don't have Git, it's troublesome to make a backup.
if it is really a very micro project, of course it doesn't matter, the version management that comes with the development tools is almost enough.
< hr >it is said that webStorm and other things have their own version management, and it is not troublesome to download a graphical Git, and finish writing a commit every day
Yes, I wrote the wrong code, and I can get it back. If there is a problem with the online service, you can roll back quickly.
to the end? No one is clear about the future
Yes, you can not only save code, but also work across platforms! Or what? Do you have a flash drive? So terrible!
at least have a backup.
I don't know if it works, but a buddy of mine told me yesterday that he covered all the server and offline code, and didn't do version management.
ha
Maze
if you have more than one computer, it is necessary. For a single station, look at your personal habits
you must have it, there's no need to say that. Live with a sense of ritual, and so do writing code.
Previous: Is there a better key value list than hashmap?
Next: What is the id? of client_id in OAuth2.0 password authorization mode
when using gitlab-ci to build a task, the following error occurs when executing the git clone task or push tried ssh-keyscan-t rsa github.com > > ~ .ssh known_hosts failed after query. there is no problem with manual clone on the server whe...
1. the local dev build of this vue project can be run, and the console does not report an error. upload to github, I want to make a preview page via page. Result 404, and there is no specific reason for reporting an error http: lustforlife.cn...
vscode uses git to enter a git account and password every time it is pushed. I don t need it before, and now I don t know why ...
when git bash executes the command, the Chinese prompt is not displayed, and it is not garbled, as shown in the figure. option whether zh-CN, UTF-8 is set or useless ...
commit A-> commitB-> commit C-> commit D now I want to undo the changes to commitB or submit them backwards. ...
cd tmp back ls -al total 145636 drwxr-xr-x 2 xxx xxx 4096 Jan 17 11:04 . drwxrwxrwt 18 root root 4096 Jan 17 10:44 .. -rw-r--r-- 1 root root 45 Jan 16 18:40 imitation.tar.gz -rw-r--r-- 1 root root 146996064 Jan 16...
it s strange that last night the team worked overtime and updated a version to the server, and then I suddenly had this problem when I clicked on the update code. I have encountered such a problem once before, but I have forgotten how to solve it. And ...
the gitlab, environment is private, assuming that existing project A has two files A a.txt , A b.txt , and has a series of operations such as commit and merge. now a new project needs to be created due to business requirements, but the new project o...
on the Internet, I GIT one of other people s projects and develop my own . As a result, I modified a file locally in the project, and someone else updated this time, which caused me to report an error in git pull this time. use git stash to save to t...
there is a benchmarks directory in some open source projects, such as vue , which is very popular now. The literal translation of benchmark means benchmark test. It seems that some functional performance tests can be done. given that there is a test di...
if you use git push, only the latest commit, will not be uploaded before commit. ...
you can easily upload the target project to your github repository through ssh or directly through account configuration in pycharm. but what if the operation can operate the project in the team warehouse? needs to upload, clone and update the project...
I used a program as a development template in github by downloading it locally. based on this template, I made a lot of changes. (delete, add and modify) now the original developer has made a large-scale update to the program template. I would lik...
"how can an inexperienced junior programmer with poor skills read the project source code? " "has anyone read the source code of mybatis? just look at the initialization process and get dizzy. Friends, give me some advice! " "how to read the sour...
as mentioned, I imported github s project with Aliyun code, but I don t know how to release a version? Ask the great god for advice! Thank you! ...
has been successfully installed into node_modules through npm install https: github.com username -sharp-sharp-sharp.git-d , but there is no relevant key name in package.json, but it can be used normally if the code in my local node_modules is updated...
for git, it is only a simple operation. I would like to ask the team to assist in the general basic process ....
pull-up substitution code in git has been a problem all the time according to what is said on the Internet, git config can t handle it well. Please tell us how to reset your account or password ...
I know that using git s subtree can reference another project B as a subdirectory in one project A, but will reference the entire project B, and I only want to reference some of the code in B. the application scenario is that among several web system...
enter hexo d to appear: fatal: git@github.com lixinblog lixinblog.github.io.git does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ...