正在更新已在EC2实例上克隆的Github repo
有人能解释一下更新我亚马逊EC2机器上的回购协议的正确终端命令吗?我已经完成了git克隆“git url”,存储库现在位于我的EC2实例上,但我想知道如何更新repo正在更新已在EC2实例上克隆的Github repo,git,amazon-ec2,Git,Amazon Ec2,有人能解释一下更新我亚马逊EC2机器上的回购协议的正确终端命令吗?我已经完成了git克隆“git url”,存储库现在位于我的EC2实例上,但我想知道如何更新repo 感谢您提供的帮助。很可能,您需要执行以下操作: git commit -a <This will take you into vim, hit the letter 'i' and begin typing your commit message. Then, Hit Esc, and type ':wq' and ent
感谢您提供的帮助。很可能,您需要执行以下操作:
git commit -a
<This will take you into vim, hit the letter 'i' and begin typing your commit message. Then, Hit Esc, and type ':wq' and enter to save.
git push
git提交-a
很可能,您需要执行以下操作:
git commit -a
<This will take you into vim, hit the letter 'i' and begin typing your commit message. Then, Hit Esc, and type ':wq' and enter to save.
git push
git提交-a
如果要将克隆的repo更新为克隆源的远程设备的当前状态,则可能需要如果要将克隆的repo更新为克隆源的远程设备的当前状态,则可能需要假设您使用适当的远程设备(即主设备)设置git,您可以只使用git pull
或git pull origin
您可以在此处阅读有关远程设备的更多信息:
使用git-remote
列出当前的远程设备,并添加一个类似于git-remote-add-linux-nfs的远程设备git://linux-nfs.org/pub/linux/nfs-2.6.git
假设您使用适当的遥控器(即主控器)设置git,您只需使用git pull
或git pull origin
您可以在此处阅读有关远程设备的更多信息:
使用git-remote
列出当前的远程设备,并添加一个类似于git-remote-add-linux-nfs的远程设备git://linux-nfs.org/pub/linux/nfs-2.6.git