Endings: The file will have its original line in your working directory.
Error description
The file in git submission will have its original line of endings in your working directory. “Git add” : “git add” : “git add” : “git add”
1 git rm -r -f-- git add. -- git push -u origin master -- git push -u origin masterCopy the code
The command submitted for the first time
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:xxxx.git
git push -u origin master
Copy the code
Github Branch master set up to track remote Branch master from origin failed to submit the code. How can I solve the problem?
Add to the local repository
git add .
Copy the code
Adding a Submission Description
git commit -m 'content'
Copy the code
Pull the request from the remote repository main branch before committing
git pull origin master
Copy the code
Submit the local repository code
git push -u origin master
Copy the code
Hamid: The file will have its original line in your working directory. Branch master set up to track remote Branch master from origin
Git rm -r-fGit add. 3. Add git commit -m'content'Git pull origin master -u origin master -u origin masterCopy the code