How to synchronize git between two machines?

1

I have a project hosted on bitbucket , access it on my machine normally and update the files like this:

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

The data goes to good cloud.

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

    
asked by anonymous 22.02.2018 / 15:43

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
    
22.02.2018 / 15:46
2

To clone the repository

git clone enderecoRepoOnline

To upgrade

git pull
    
22.02.2018 / 15:46