podcodar / exercises

Listas de exercícios da PodCodar
GNU General Public License v3.0
3 stars 13 forks source link

Adicionar update de fork na doc git #13

Open frattezi opened 3 years ago

frattezi commented 3 years ago

É necessário exemplificar e demonstrar como atualizar o fork pessoal com novos exercícios e atualizações do repositório principal.]

ref:

# Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

# Fetch all the branches of that remote into remote-tracking branches

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your main branch so that any commits of yours that
# aren't already in upstream/main are replayed on top of that
# other branch:

git rebase upstream/master
frattezi commented 3 years ago

Adaptar o código acima e colocar junto a doc de GIT

frattezi commented 3 years ago

Percebemos que o github avisa quando existem novos updates no repositório e te da a opção de fazer um Pull Request facilmente, melhor seguir esta lógica que a do terminal pois pode ser complexa.