I can't push with git.

Asked 1 years ago, Updated 1 years ago, 61 views

I'm a git beginner.
I tried to git push by doing git_init, git add-A, and git commit in the folder, so I deleted DS_Store with git_ignore and pulled the url of the remote repository with git remote add origin, but it didn't work.

The git clone should only be a remote copy, so I don't think it's a simple push after putting the data in it.Also, since we created a new folder and started with git init, the command remote add origin should be necessary.
I was asked to verify Kerberos authentication once, but it doesn't work even if I repeat the same procedure again with the kinit command.It says could not read from repository, but the same message appears when you type git push origin master

What I want to ask is a definite procedure until git push.
I know that you have to type config, kinit, .git_ignore, etc. just by pushing the contents of the new folder.
However, detailed instructions were not found on the Internet.
Could you tell me the detailed procedure for typing on the command line instead of the GUI?

When I asked someone else, they told me that it was about the config and repository name, but the repository name doesn't change url, so it doesn't work even if I set the config.I can't give up the possibility that my settings and thoughts are wrong somewhere, so I would appreciate it if you could explain the detailed steps.

git

2022-09-30 21:46

1 Answers

Below is an explanation of how to use git, but
of the questioner's environment. I think it's a problem with Kerberos authentication with single sign-on.
First of all, it is necessary to isolate whether it is a Kerberos authentication problem in the environment or a git usage problem.

If this is an environment (Kerberos authentication) issue

First, make sure that the time between the server and the computer is correct.
A few minutes off results in an authentication error.

Distributed work in Git-Cited from contributing to the project

If so,

 git fetch origin
git merge origin/master

conflict error does not occur as the git push.

The remaining 10 percent of the patterns were modified by someone else at the same time by the same part of the same source. conflict (collision) pattern.

It depends on the project policy, but while listening to each developer about the modifications,
Select the modifications you want to adopt and commit.
Try again with that information.

Now you can push

First, please add what kind of error occurred to your question.


2022-09-30 21:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.