3
I made some changes to a project of mine that was on Github, now I want to synchronize it with my local repository and continue editing, how do I do this?
3
I made some changes to a project of mine that was on Github, now I want to synchronize it with my local repository and continue editing, how do I do this?
3
If you have not cloned your remote repository to your local machine do the following command on the terminal, in the directory where you want to save
git clone <url do repositório remoto>
If you’ve already cloned the repository, to pull the remote changes to the location.
git pull origin master
3
In your local directory (assuming you already have the same project cloned locally with 'git clone') just do
git pull
This command synchronizes the local directory by pulling everything again from the remote directory.
If you have made local changes that do not matter, you can
git stash
git pull
Note: git stash temporarily stores changes on the shelf if you want to use them later.
Just to complement, when you want to update your github directory with the changes you’ve made to your local knife directory: git push origin master
Browser other questions tagged git github
You are not signed in. Login or sign up in order to post.
Which operating system?
– Wilker