How to put project on Bitbucket?

3

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;

    
asked by anonymous 11.10.2015 / 22:57

1 answer

6

Suppose you are working with a GIT repository that was previously created and already contains some files.

Step 1 - Synchronizing the repository

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:

Step2-Checkingthedifferences

Withtherepositoryinsync,youcanedit/createthefilesneededtoexecuteyourdemand.Whenyouwanttocheckthestatusofyourlocalrepositoryagainsttheremoterepository,usethefollowingcommand:

gitstatus

Step3-Addingnewfiles

Ifyouhaveaddedanewfiletotherepository,youneedtoaddittothelistoffilesmanagedbyGIT.Thiscanbedonebyusingthefollowingcommand:

gitadd.

Step4-Committing

Afteraddingallthefiles,it'stimetodo commit . To do this, use the command:

git commit -am "mensagem explicando o que foi feito"

Step 5 - Performing additional changes

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.

Step 6 - Sending the changes to the remote repository

If you have finished working, it's time to do push . To do this, simply use the command:

git push
    
11.10.2015 / 23:12