Git Complete Hands on Training for Web Developers by Deepika Khanna

git-complete:Git完成课程 我的内部项目 正文 第一节 文字1,存放后有一些变化 第二节 文字2 第三节 文字3 第4节 文字4 版权 2021 Git完成/保留所有权利。 立即下载

What is Git?

Git is a version control system. It helps to manage changes to your files. It keeps track of what changes made to which file and who made those changes.


A Centralized Version Control System(CVCS) uses a central server to store all files.

A Distributed VCS enables every developer to get its own copy of the entire project.


Stability is the illusion of the unimaginative. So what's different? It's very simple. I had somebody who believe in me and I never gave up. If you can find somebody who believes in you, somebody who can look at you in the eye and tell you you're not stupid, you're not crazy, go for it, that changes everything.

Federico Pistono

git --version /*check current version of git installed.*/

 

pwd /*present the path of current working directory*/

 

ls /*list all files and folders under the current folder.*/

 

clear /*clear the screen.*/

 

git init /*initialize a git repository in the current folder.*/

 

ls -la /*list out all files and folders including those hidden ones.*/

 

git status /*check the status of each file in your depository.*/


Creating a git account:

 

git config --global user.name "Mike" /*define author's name*/

 

git config --global user.email "AFakeEmailAddress@hotmail.com" /*define author's email*/

 

git config --list /*list out content of the config file.*/


git add index.html /*stage a file for the next commit; Before completing the commit, the file can be formatted and reviewed in an intermediate area called staging area.*/

 

git commit -m "first commit of index file" /*commit staged files with a descriptive message.*/

 

git add . /*add all untracked files or changes not staged for commit.*/

 

git add blue.html orange.html /*staging two files.*/

 

git log /*view a repository's commit history*/

 

git log --oneline /*show git commit history one line for one commit*/

 

git log index.html /*show only commits related to one specific file.*/


git tag -a v1.0 -m "stable version of the website" /*give a tag to a specific version*/

git tag -a <tag-name> -m "<description>" /*create an annotated tag pointing to the most recent commit.*/


git checkout v1.0 /*looking at a specific version*/

 

git checkout 7892597 /*looking at a specific version*/


git revert 7892597 /*revert a specific version*/

git revert <commit-id> /*undo the specific commit by applying a new commit*/


git reset --hard /*reset tracked file to match the most recent commit*/


git clean -f /*remove all untracked files*/


git branch /*list all existing branches.*/

 

git branch crazy /*create a branch called crazy.*/

 

git checkout crazy /*switch to branch crazy*/

 

git checkout master /*switch to master branch*/


将一个名为crazy.html的文件重命名为rainbow.html后的操作:


Merge branch css to master:

1. first, switch to master branch:

git checkout master

2. then, use the following command:

git merge css

3. third, css branch is identical to master branch and can be deleted as a result:

git branch -d css


git checkout crazy

git merge master /*merge master branch to crazy branch*/

 

git commit -a -m " Add css Stylesheet to rainbow.html"

 

git about /*about 是个文件名;此命令可以把一个文件夹里的所有内容加到staging area*/

 

git branch -d news-hotfix /*delete a branch*/

 

git rebase master /*rebase off the updated version of master branch*/

git rebase <new-base> /*Move the current branch's commits to the tip of <new-base>*/

 

git rebase -i master /*change commit history*/

git rebase -i <new-base> /*Perform an interactive rebase and select actions for each commit*/

 

git commit --amend /*Add staged changes to the most recent commit instead of creating a new one.*/

git rebase --continue /*Continue a rebase after amending a commit*/

git rebase --abort /*Abort the current interactive rebase and return the repository to its former state*/

Rebasing enables fast-forward merges by moving a branch to the tip of another branch.


git checkout -b new-pages /*creage a new branch and switch to it.*/


Rules for commit:

Commit a snapshot for each significant addition to your project.

Don't commit a snapshot if you can't come up with a single, specific message for it.


git reflog /*Display the local, chronological history of a repository*/


When you are in "detached HEAD' state, the head is not in the tip of the branch.


git reset --mixed HEAD~<n> /*Move the HEAD backward <n> commits, but don't change the working directory*/

git reset --hard HEAD~<n> /*Move the HEAD backward <n> commits, and change the working directory to match*/

git log HEAD..green-page --stat /*show difference bewteen master and the branch green-page*/

git log <since>..<until> /*Display the commits reachable from <until> but not from <since>. These parameters can be either commit ID's or branch names*/


git clone my-git-repo marys-repo /*cloning a repository*/

git clone <remote-path> /*Create a copy of a remote Git repository*/

ls /*list file names*/

ll /*list file name and related info*/

 

git log -n 1 /*check only the last commit*/

git remote /*show relationship with other depository; list remote repositories*/

git remote -v /*show remote repository's path*/

git remote add <remote-name> <remote path> /*Add a remote repository*/

git remote add mary ../mary-repo /*establishing a connection with a repository known as mary, specifying its path*/

git fetch <remote-name> /*Download remote branch information, but do not merge anything*/

git fetch mary /* fetch all branches from mary*/

git branch -r /*show remote repository's branches*/

 

git log master ..mary/master --stat /*compare branches*/

git push <remote-name> <branch-name or tag-name> /*Push a local branch to another repository*/

git push mary dummy /*push a branch dummy to repository*/

git push mary v2.0 /*push a tag to repository mary*/


git init--base <repository-name> /*Create a Git repository, but omit the working directory*/

git init --bare central-repo.git /*tell git to create a repository that don't include a working directory*/

 

git remote rm <remote-name> /*Remove the specified remote from your bookmarked connections*/

git remote rm origin /*remove connection with repository origin*/

 

git remote add origin ../central-repo.git /*add an origin*/


git config --list /*list out config content*/

告别外置电阻!揭秘MAX22201集成电流检测的5大设计优势(附PCB布局案例) 本文深入解析MAX22201集成电流检测技术在直流有刷电机驱动中的5大设计优势,包括BOM成本降低、PCB空间优化、动态性能提升等。通过与传统方案(如DRV8871+外置电阻)的实测对比,展示其在高精度电流检测、抗干扰能力和PCB布局简化方面的突破,并附有详细的PCB布局案例和配置指南。 阅读详情

相关推荐

七、永磁同步电机矢量控制(FOC)—MTPA控制及Simulink仿真

前面几节的内容已经完成Id=0控制策略的理论和仿真以及双闭环PI参数整定。在接下来几节中,将陆续讲解MTPA、弱磁控制等内容。

weixin_45182459的博客 8216

git实现自动补全,通过git-completion脚本

通过brew安装git-completion,实现git自动补全功能。网上方法都太过生涩,对新手不太友好,故而自己整理简化,清晰地写了一份,希望对大家有帮助,有什么不懂可以问我,刚开的微博,欢迎大家指正。

phizey的博客 670

Ubuntu单系统安装全攻略:从删除Windows到UEFI引导设置(避坑指南)

本文提供Ubuntu单系统安装的完整指南,涵盖从安全删除Windows系统到UEFI引导设置的详细步骤。通过专业工具准备、分区方案设计、引导加载器配置等关键环节,帮助用户避免常见安装问题,实现纯净高效的Ubuntu单系统环境。特别强调UEFI引导的深度配置与安装后的性能优化,适合希望彻底转向Linux的用户。

weixin_29210727的博客 417

git 自动补全 (git auto completion)

下载git-completion.bash 并放到home 目录下: curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash 将如下行放到.bash_profile 文件中 i...

dengji8846的博客 415

从零到一:Qt与PCL的跨平台开发环境搭建全攻略

本文详细介绍了从零开始搭建Qt与PCL跨平台开发环境的完整流程,涵盖Windows、Linux和macOS三大平台。重点解析了Qt5与Qt6版本选择、PCL库安装配置、VTK集成等关键技术要点,并提供跨平台CMake项目模板和常见问题解决方案,助力开发者快速构建三维点云处理应用。

weixin_29280657的博客 394

手把手教你用Qwen-7B打造医疗大模型:从数据准备到RLHF全流程实战

本文是一篇基于Qwen-7B-Chat模型构建医疗领域大模型的实战全流程指南。文章详细拆解了从数据准备、环境搭建,到增量预训练、监督微调(SFT)以及偏好对齐(DPO)的核心技术步骤,并分享了部署与持续优化的实践经验。通过LoRA等高效微调技术,帮助开发者掌握将通用大模型改造为专业领域专家的完整方法论。

weixin_29191761的博客 135

git命令行加入自动补齐(auto completion)功能

1.curl -OL https://github.com/git/git/raw/master/contrib/completion/git-completion.bash  //从github下载bash文件       2.将此文件复制到你自己的用户主目录中,按照下面的示例,还应改名加上点: cp git-completion.bash ∼/.git-completion.bas

好读书的程序员的博客 2735

本地部署AI应用:基于Google Gemini的banana-prompt快速上手指南

AI应用开发的核心在于将大模型能力集成到实际场景中,其原理是通过API调用将用户输入转化为模型可理解的指令,再由模型生成响应。这一技术价值在于降低AI应用开发门槛,实现数据本地化处理与隐私保护。在工程实践中,开发者常面临环境配置复杂、API集成繁琐等挑战。本文聚焦于使用banana-prompt工具包,通过TypeScript技术栈和npm包管理,快速在Windows本地部署基于Google Gemini API的AI应用。该方案特别适用于ai-prompts提示词工程和content-creation内容

weixin_27188815的博客 324

git命令自动补全

git社区,找当前机器对应版本源码 git源代码下有个 contrib/completion 目录,有个 git-completion.bash 文件 1. 将该文件git-completion.bash复制到个人主目录(~)下 注意:复制时,文件名前加一个"点"(.), cp git-completion.bash ~/.git-completion.bash 修改主目录下的 .bashrc 文件 vi ~/.bashrc 在文件的最后一行,加上如下代码: source ~/.git-completio

yyz916的博客 1435

手把手教你学simulink(16.8)--基于Simulink的小波变换滤波器(Wavelet Transform Filter)项目

基于Simulink的小波变换滤波器(Wavelet Transform Filter)项目的详细实例介绍。这个项目将重点放在小波变换滤波器的设计、实现和仿真上,帮助你理解和应用小波变换滤波器在信号处理中的作用。

MHD0815的博客 541

SAP SD销售订单的ATP检查简介

如果可用性检查组设置为01(汇总需求),系统将更新销售订单需求到汇总表VBBS,该表中未记录销售订单号码,因此在MD04中不会显示销售订单号码,而是按天汇总显示销售需求。如果物料的可用性检查组设置为02(单个需求),系统将更新销售订单需求到表VBBE,该表中记录了销售订单号码,因此在MD04显示销售订单的号码以及需求,前面的文章中我们解释了PP模块中的ATP检查,也解释了MM模块中的ATP的检查,本文将说明一下SD模块中的ATP检查。可用性检查用的最多的就是02,有兴趣的同学可以测试一下可用性检查01。

我小时候很黑的博客 4329

GIT 自动补全命令,分支名 以及 高亮显示当前分支

GIT 自动补全命令,分支名 以及 高亮显示当前分支配置

BetterMan菜鸟进阶 8087

用 SAP-ABAP-1 把 ABAP 代码读懂:从 Generative AI Hub Orchestration 到 Joule 落地的实战指南

SAP-ABAP-1 是 SAP 推出的 ABAP 专用基础模型,专注于代码解释与理解。它能显著降低企业遗留系统的维护成本,帮助开发人员快速掌握复杂业务逻辑。该模型通过 SAP Generative AI hub 托管,支持 128,000 tokens 的上下文长度,适合分析大型 ABAP 类和 CDS 视图。典型应用场景包括代码解释、迁移辅助和云合规检查。调用需通过 Orchestration service 进行,确保企业级安全治理。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 1228

mac下使用bash-completion进行git命令自动补全

mac下使用bash-completion进行git命令自动补全本问描述了在mac下通过安装bash-completion的方式使用git命令补全. 检查是否已经安装 brew list 若未安装,则使用brew命令安装 brew install bash-completion 安装完成后查看插件信息 $ brew info bash-completion bash-completion: stab

海阔天空,在勇敢以后 8291

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

Amend Last Commit选项使用注意点

1.创建master分支并上传到remote分支 create 2 folders and 4 files 2.修改folder1/file1.java,commit并push。 3.修改folder1/file2.java,使用Amend Last Commit选项,先commit。 4.push,失败。 失败的原因是本地的当前分支的最前端提交(tip)在它对应的远程分...

weixin_33834679的博客 1411

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

git配置自动补全

1. 下载git-completion.bash github地址:https://github.com/markgandolfo/git-bash-completion.git 2. copy到用户根目录~/ cp git-completion.bash ~/.git-completion.bash 3. 使之生效 source ~/.git-completion.b

科大浪子的专栏 6787

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

[Traversy Media | HTML & CSS] Flexbox CSS In 20 Minutes

视频在线观看地址:https://www.bilibili.com/video/av57278636/ 原视频出处: https://www.youtube.com/watch?v=JJSoEo8JSnc Flexbox is a CSS3 layout mode that provides an easy and clean way to arrange items within a co...

CodingIsFun 7622

JavaScript Basics for Beginners by Mosh Hamedani

Javascript can be run inside a brower or Node which provides a runtime environment for Javascript. ECMAScript is a specification and Javascript is a programming language that confirms to this specifi...

CodingIsFun 950

The Web Developer Bootcamp by Colt Steele

教程链接: https://www.udemy.com/course/the-web-developer-bootcamp/ B站视频链接: https://www.bilibili.com/video/av68903874?from=search&seid=4749584228894702674 GitHub Files: https://github.com/Li-YangZ...

CodingIsFun 921

Traversy Media Web Development In 2020 - A Practical Guide

视频播放地址:https://www.bilibili.com/video/av82744403 What Is Software-as-a-Service? Software-as-a-Service (SaaS) is a software licensing model in which access to the software is provided on a subscri...

CodingIsFun 855

web前端200行JS骚操作,实现爬虫每天定时给女朋友发送暖心邮件

视频链接:https://www.bilibili.com/video/av50328496 GitHub Files: https://github.com/Li-YangZhong/LoveMail.git npm init -y //初始化项目 // npm install superagent cheerio art-template node-schedule nodemaile...

CodingIsFun 841

3小时学会MySQL 初学入门完整教程[2019]

视频播放地址: https://www.bilibili.com/video/BV1iJ411m7Fj

CodingIsFun 756

Visual Studio Code by John Papa from PluralSight

www.johnpapa.net A lead engineer on Visual Studio Code is Erich Gamma. Shift+Ctrl+P /*enter Command Palette*/ code README.md -r /*-r option opens file in the last active instance*/ code REA...

CodingIsFun 721

Javascript Programming in One Video by Mike Dane from Giraffe Academy

Exercise files uploaded tohttps://github.com/Li-YangZhong/Javascript-Programming-in-One-Video-by-Mike-Dane-from-Giraffe-Academy 视频链接(不保证永久有效):https://www.bilibili.com/video/av42052671 ...

CodingIsFun 506

Responsive Web Design Tutorial by THENETNINJA

B站视频:https://www.bilibili.com/video/av10338325 My Github Files: https://github.com/Li-YangZhong/Responsive-Web-Design-Tutorial.git 配套文件下载地址:https://github.com/iamshaunjp/psd-to-wp Making our web...

CodingIsFun 481

The Advanced Web Developer Bootcamp

Udemy课程链接:https://www.udemy.com/course/the-advanced-web-developer-bootcamp/ B站视频链接: https://www.bilibili.com/video/BV1T7411W7cR 我的GitHub文件: https://github.com/Li-YangZhong/The-Advanced-Web-Developer...

CodingIsFun 478
上一篇: Git Essentials by Ferdinando Santacroce
下一篇: Visual Studio Code by John Papa from PluralSight
CodingIsFun
博客等级 码龄8年 37粉丝 240原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址