How to sync git between two machines?

Asked

Viewed 360 times

1

I have a project staying at bitbucket, access it on my machine normally and update the files so:

git add.
git commit -m 'novo nome'
git push

Data goes to good cloud.

My question is: When I have another machine, how do I "pull" the updated data and keep working?

2 answers

4


you need to make a clone on your machine:

git clone url for example:

go to the folder you want to dump the project and run the command:

git clone https://github.com/juliohds/ProjetoIhelp.git

if you need to update the project with the cloud files use:

git pull

2

To clone the repository

git clone enderecoRepoOnline

To update

git pull

Browser other questions tagged

You are not signed in. Login or sign up in order to post.