git quiz分析总结

  1. Which option should you use to set the default user name for every repository on your computer?
  • To set a name for every Git repository on your machine, use $ git config --global user.name "John Smith"

2. What is the command to set the user email for the current repository?

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

**3.**What is the command to view the history of commits for the repository?

The most basic and powerful tool to do this is the git log command.

  1. What is the command to create a new branch named "new-email"?

git branch new-branch-name

**5.**What is the command to move to the branch named "new-email"?

git checkout -b <new-branch>

  1. What is the option, when moving to a branch, to create the branch it if it does not exist?

-b

  1. What is the command to delete the branch "new-email"

git branch -d new-email

  1. What is the command to get all the change history of the remote repository "origin"?

Fetching changes from a remote repository

Use git fetch to retrieve new work done by other people. Fetching from a repository grabs all the new remote-tracking branches and tags without merging those changes into your own branches.

  1. Git Pull is a combination of:

The git pull command is actually a combination of two other commands, git fetch followed by git merge. In the first stage of operation git pull will execute a git fetch scoped to the local branch that HEAD is pointed at. Once the content is downloaded, git pull will enter a merge workflow.

LINK: https://www.w3schools.com/quiztest/result.asp

Git Fetch | Atlassian Git Tutorial

相关推荐
小月土星10 小时前
CSS 3D 从入门到炫技:手把手教你写一个旋转立方体
前端·css
xingpanvip10 小时前
星盘接口开发文档:本命盘接口指南
android·开发语言·css·php·lua
Metaphor69210 小时前
使用 Python 将 PDF 转换为 HTML
python·pdf·html
HjhIron11 小时前
CSS 3D 世界:从盒子模型到三维空间动画
javascript·css
参宿712 小时前
CSS 悬挂空白与选区溢出
前端·css
a11177613 小时前
“黑夜流星“个人引导页 网页html
java·前端·html
黄敬峰14 小时前
纯 CSS3 打造 3D 旋转魔方:从文档流、Flex 布局到空间变换的硬核复盘
css
JieE21214 小时前
手把手带你用纯 CSS 实现一个 3D 旋转魔方,这些前端基础你能打几分?
前端·css·html
JYeontu14 小时前
开箱流水加载动画
前端·javascript·css
想要成为糕糕手15 小时前
从零到一:CSS 3D 旋转立方体完全指南
前端·css·canvas