generalizations
Let’s take a moment to review the main concepts and commands from the lesson before moving on.
- Git branching allows users to experiment with different versions of a project by checking out separate branches to work on.
The following commands are useful in the Git branch workflow.
git branch: Lists all a Git project’s branches.git branch branch_name: Creates a new branch.git checkout branch_name: Used to switch from one branch to another.git merge branch_name: Used to join file changes from one branch to another.git branch -d branch_name: Deletes the branch specified.
generalizations
Congratulations, you now know enough to start collaborating on Git projects! Let’s review.
- A remote is a Git repository that lives outside your Git project folder. Remotes can live on the web, on a shared network or even in a separate folder on your local computer.
- The Git Collaborative Workflow are steps that enable smooth project development when multiple collaborators are working on the same Git project.
We also learned the following commands
git clone: Creates a local copy of a remote.git remote -v: Lists a Git project’s remotes.git fetch: Fetches work from the remote into the local copy.git merge origin/master: Mergesorigin/masterinto your local branch.git push origin <branch_name>: Pushes a local branch to theoriginremote.
Git projects are usually managed on Github, a website that hosts Git projects for millions of users. With Github you can access your projects from anywhere in the world by using the basic workflow you learned here.
解决合并时,对话框无法退出的问题:
https://stackoverflow.com/questions/19085807/please-enter-a-commit-message-to-explain-why-this-merge-is-necessary-especially
https://blog.csdn.net/cjh_android/article/details/51923618
提交新内容至仓库:
https://www.cnblogs.com/zhizhiyin/p/9143529.html
创建新的key:https://blog.csdn.net/qq_34902522/article/details/78498664
重置:https://segmentfault.com/a/1190000018211890
