my .gitignore was modified when I used git to push the local repo to the remote repo.
< kbd > < / kbd >
excuse me, do I need to add .gitignore to the version when I push?
my .gitignore was modified when I used git to push the local repo to the remote repo.
< kbd > < / kbd >
excuse me, do I need to add .gitignore to the version when I push?
if your .gitignore file has been modified, it is necessary for push to push it to the remote end.
if you make a change, of course you have to push it up, otherwise, the next time someone pulls the code down from the remote warehouse, you can't. Gitignore can't take effect, so why should there be gitignore?? For example, the node_modules folder, if you add a dependency to your package.json, then you install it, but do you want to upload the new package from node_modules to the remote warehouse? No, because someone else just needs to come in and install a new package.json, so the .gitignore file is designed to configure the files or folders you want to ignore when uploading a remote repository.
need it. Gitignore means that your git does not version some files, but the .gitignore file itself needs to be push.
otherwise you can change the clone project on another machine, make changes, and then rewrite .gitignore.
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. ...