链接:https://github.com/ly1995/test
心得:
1.使用时,需要注意:配置用户名和邮箱。
git config --global user.name "Your Name Here"# Sets the default name for git to use when you commit
git config --global user.email "your_email@youremail.com"# Sets the default email for git to use when you commit
2.我还知道了git中重要的概念:
- 工作目录(working directory):在工作目录中修改文件,修改后的文件状态是modified,新添加的文件是untracked,通过git add命令将文件保存到staging area中;
- staging area:保存下次即将提交到git repository中文件的snapshot。文件状态是staged,通过git commit命令提交文件到git repository中;
- git repository:本地仓库。通过git push命令更新远端服务器仓库,通过git pull命令更新本地仓库。
通过本次实践,我对github的使用了解了更多,希望自己能更好的独立进行操作,更加喜欢了与团队进行合作,
在合作过程中,与老师同学交流的更好,我会继续努力,好好实践。
Git基础配置与工作流程
本文分享了Git的基本配置步骤,包括设置用户名和邮箱,并详细解释了Git中的几个关键概念:工作目录、暂存区及仓库。此外还记录了作者在实际操作过程中的心得与体会。
5万+

被折叠的 条评论
为什么被折叠?



