I'm pretty new to Git and I can't seem to find the correct commands for cloning and updating a repository.
I really want two folders on different locations which both (preferably automatically) sync with the remote repository, they don't have to make changes. Just download updated files.
How can this be achieved in Windows?
I installed the GitHub application but it doesn't offer functionality to have multiple clones.
You can clone a repository as many time as you want.
On Windows I would install Git Bash to clone and update your local copies.
To update the repository you should use git pull
.
To schedule the update to be automatic you should follow Microsoft way .
To keep it simple you should
Control Panel » Scheduled Tasks
Schedule » Advanced
You can easily do that through GitBash on Windows. Simply navigate to the directory where you want the clone to be and run git clone
followed by the repositories url (you can find that on Github inside the repository).
To update the repository simply run git pull
from within the dedicated directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.