Could somebody explain the proper terminal command to update a repo sitting on my Amazon EC2 machine? I’ve already done a git clone ‘git url’ and the repository is now on my EC2 instance, but I’d like to know how to update the repo.
Thanks for any help you can provide.
Assuming you set up git with the proper remote, i.e. master, you can just use
git pullorgit pull origin.You can read more about remotes here: http://git-scm.com/docs/git-remote.
List current remotes with
git remote, and add one with something likegit remote add linux-nfs git://linux-nfs.org/pub/linux/nfs-2.6.git.