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

相关推荐
我爱娃哈哈5 小时前
SpringBoot集成:5分钟实现HTML转PDF功能
spring boot·pdf·html
低代码布道师5 小时前
互联网医院18:前端进阶——CSS“父相子绝”打造专业级卡片交互
前端·css·低代码·小程序·云开发
ヤ鬧鬧o.5 小时前
导航菜单实现平滑切换页面
javascript·css·html
luffy54595 小时前
css实现五星好评样式
前端·css·html
松涛和鸣6 小时前
DAY43 HTML Basics
linux·前端·网络·网络协议·tcp/ip·html
行思理9 小时前
css 样式新手教程
前端·css·html5
狮子座的男孩10 小时前
html+css基础:22、css3的新增文本属性(文本阴影/换行/溢出/修饰/描边)、新增渐变(线性渐变、径向渐变、重复渐变、渐变案例)
经验分享·css3·线性渐变·径向渐变·文本属性·新增渐变·重复渐变
雪忆·HL10 小时前
CSS3知道这些就足够了
前端·css·css3
心机boy22910 小时前
CSS3网格布局、过渡及2D效果
前端·javascript·css3
空白10 小时前
自学HTML5+CSS3丨第三天丨详解SEO
前端·css3·html5