[英]How to update a git hub repository on command line
我想更新一个 GitHub 存储库,可以在https://github.com/south-coast-science上找到我这样做是为了可以使用新命令,但是我不确定如何执行此操作。 我曾尝试使用 pip install update 方法,但该方法无效。
“sudo pip3 安装 SCS/-U”
我想我可能需要做一个 git pull 但我不知道如何处理它。
下载和更新 repo 的过程通常如下:
git clone [remote repository URL]
# Clones the repo
git init
# initializes the local repo
git remote add origin [remote repository URL]
# Sets the new remote
git remote -v
# Shows the new remote URL
从这里您可以修改或添加您想要使用的文件
git add [file name(s)]
# Adds files to commit
git commit -m "commit message"
# Creates the commit, with a message
git push origin master
# Pushes the changes in your local repository up to the remote repository you specified as the origin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.