I'm trying to put my project in the teacher's repository and I'll end up without a grade because I can not, and I did the following;
Itwasgoingwell,butwhenitarrivedinthelastcommanditgaveerrorasyoucansee;
Suppose you are working with a GIT repository that was previously created and already contains some files.
Choose any folder on your system and type:
git clone ENDERECO_DO_REPOSITORIO
This address can be found in the upper right corner of the bitbucket, as shown below:
Withtherepositoryinsync,youcanedit/createthefilesneededtoexecuteyourdemand.Whenyouwanttocheckthestatusofyourlocalrepositoryagainsttheremoterepository,usethefollowingcommand:
gitstatus
Ifyouhaveaddedanewfiletotherepository,youneedtoaddittothelistoffilesmanagedbyGIT.Thiscanbedonebyusingthefollowingcommand:
gitadd.
Afteraddingallthefiles,it'stimetodo commit
. To do this, use the command:
git commit -am "mensagem explicando o que foi feito"
Are there new demands to be made? Just keep working normally. When finished, simply perform steps 2 to 4 again. After the completion of all the demands, it is time to send the changes made to the remote repository. To do this, continue with step 6.
If you have finished working, it's time to do push
. To do this, simply use the command:
git push