git installation experience

Code punch card code every day tasks, we need teachers to submit links, which we need to fight their own code files uploaded to GitHub up, in order to get links.
He is a rookie, but also what they do not install git (along with the online tutorial also always wrong)
Installation Normal operation: https: //www.cnblogs.com/sdcs/p/8270029.html
But for the first time to install the Middle many problems, mainly because they do not know the meaning of the code is going to lose, leading to their staged a folder is also associated with good but just can not upload the file
a second time to associate the git repository to a local folder, but again not upload file
following problems
HP-TC6D4BCR MINGW64 @ LAPTOP / D / 123 (Master)
$ Git Origin Master Push
the To https://github.com/Sisterben/-.git
! [Rejected] Master -> Master (FETCH First)
error: failed The refs to the Push to some 'https://github.com/Sisterben/-.git'
hint: Because the Updates Rejected were the contains at The Remote Work that you do
hint:. This IS usually not have have locally Caused by Another repository pushing
hint: The Same to REF On May by You want to integrate The First Remote Changes.
hint: (EG, '... Git pull') before Pushing Again.
hint: See The 'Note About FAST-Forwards' in' Push Git - . help 'for details
solution: https: //blog.csdn.net/qq_29985391/article/details/85047841
now finally upload their own code to go up!
But the next operation will still appear above problems, to lose more than one code first remote content repository into a local, then upload. Solving.
Usually Action Required:
1. Place your files onto a local folder
2.git add files
3.git commit -m "Remarks"

Guess you like

Origin www.cnblogs.com/sisterben/p/11615876.html