我在GitHub上有一个回购,我希望通过对我从中提取的文件夹所做的更改来更新它.
什么是步骤,没有行话或简短的术语,新的Git用户应该从他们的那一刻开始做cd directory什么?
包括如何跟踪对任何文件所做的本地更改,以及如何将这些更改和更新发送回远程存储库.
最简单的流程是这样的:
# clone the repository (from github, for example)
git clone git@github.com:username/reponame.git
cd reponame
# edit some files
# add them to the index
git add file1.txt
git add file2.gif
# review your changes
git status
# commit the changes
git commit -m "Decription of my change"
# push them back to the remote repository
git push origin master
Run Code Online (Sandbox Code Playgroud)
这是应该让你前进的基本流程.然而,有大量 的 资源用于学习的git的基础知识,我强烈建议你去他们.开始并不像看起来那么困难.