31.03.2024 Views

Controlando_verso_es_com_Git_e_GitHub_Ca

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sumário

CasadoCódigo

4 Trabalhandocomrepositórioremoto 61

4.1 Repositórioremoto ........................ 62

4.2 Adicionandoorepositórioremoto ............... 63

4.3 Enviandocommitsparaorepositórioremoto ......... 65

4.4 Clonandoorepositórioremoto ................. 66

4.5 Sincronizandoorepositóriolocal ................ 67

4.6 ProtocolossuportadospeloGit ................. 68

5 HospedandoorepositórionoGitHub 71

5.1 Serviçosdehospedagemdeprojetos .............. 72

5.2 GitHub: aredesocialdosdesenvolvedores ........... 72

5.3 Encontrandoprojetosevisualizandoocódigo-fonte ..... 74

5.4 CriandoumusuárionoGitHub ................. 80

5.5 Criandoorepositóriodoprojeto ................ 83

5.6 EnviandooscommitsdoprojetoparaoGitHub ........ 85

5.7 ClonandoorepositóriohospedadonoGitHub ........ 86

5.8 Colaborandocomprojetosopensource ............ 87

6 Organizandootrabalhocombranches 93

6.1 Abranchmaster .......................... 94

6.2 Criandoumabranch ....................... 96

6.3 Trocandodebranch ........................ 98

6.4 Deletandoumabranch ...................... 100

6.5 Comitandocódigoemumanovabranch ............ 101

6.6 Voltandoparaomasterefazendoumaalteração ....... 103

6.7 Mesclandoalterações ....................... 105

7 Trabalhandoemequipecombranchesremotas 113

7.1 Branchesremotas ......................... 114

7.2 Compartilhandobranches .................... 116

7.3 Obtendonovasbranchesremotasemoutrosrepositórios . . 118

7.4 Enviandocommitsparaorepositóriocentral ......... 121

7.5 Obtendocommitsdeumabranchremota ........... 123

7.6 Mesclandobranchesremotaselocais .............. 127

7.7 Deletandobranchesremotas ................... 133

ii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!