-
Git Branching ..... 63
Branches in a Nutshell ..... 63
Basic Branching and Merging ..... 70
Branch Management ..... 79
Branching Workflows ..... 82
Remote Branches ..... 85
Rebasing ..... 95 default branch name
By default Git will create a branch called master when you create a new repository with git init. From Git version 2.28 onwards, you can set a different name for the initial branch.
To To set main as the default branch name do:
$ git config --global init.defaultBranch main
## Checking Your Settings
If you want to check your configuration settings, you can use the git config --list
0 码力 |
501 页 |
17.96 MB
| 2 年前 3
-
Understanding the hardware and using it efficiently
– Computing resources of a CPU
- Pipelining
Branch prediction and hardware loop unrolling
• Conditional code vs efficiency
• Optimizing conditional code: a += v1[i] + v2[i]
load:v1[i]
Only if i
##
BRANCH PREDICTION: ANTIDOTE TO BRANCHES
• Well-pipelined code: a += v1[i] + v2[i]
• CPUs have
branch predictors
Usually i
0 码力 |
61 页 |
9.08 MB
| 1 年前 3
-
Windows
Installing from Source
First-Time Git Setup
Your Identity
Your Editor
Your default branch name
Checking Your Settings
Getting Help
Summary
Git Basics
Getting a Git Repository a Nutshell
Creating a New Branch
Switching Branches
Basic Branching and Merging
Basic Branching
Basic Merging
Basic Merge Conflicts
Branch Management
Changing a branch name
Branching Workflows Pull Request
Octokit
Summary
Git Tools
Revision Selection
Single Revisions
Short SHA-1
Branch References
RefLog Shortnames
Ancestry References
Commit Ranges
Interactive Staging
Staging
0 码力 |
731 页 |
21.49 MB
| 2 年前 3
-
Windows
Installing from Source
First-Time Git Setup
Your Identity
Your Editor
Your default branch name
Checking Your Settings
Getting Help
Summary
Git Basics
Getting a Git Repository a Nutshell
Creating a New Branch
Switching Branches
Basic Branching and Merging
Basic Branching
Basic Merging
Basic Merge Conflicts
Branch Management
Changing a branch name
Branching Workflows Pull Request
Octokit
Summary
Git Tools
Revision Selection
Single Revisions
Short SHA-1
Branch References
RefLog Shortnames
Ancestry References
Commit Ranges
Interactive Staging
Staging
0 码力 |
691 页 |
13.35 MB
| 2 年前 3
-
student;
CREATE TABLE details.student(
ID int(10) NOT NULL AUTO_INCREMENT,
NAME varchar(100) NOT NULL,
BRANCH varchar(255) NOT NULL,
PERCENTAGE int(3) NOT NULL,
PHONE int(10) NOT NULL,
EMAIL varchar(255) NOT assume that the following table named Student exists in the MYSQL database –
|\| ID \| NAME \| BRANCH \| PERCENTAGE \| PHONE \| EMAIL \||
|---|
|\| 1 \| Shyam \| it \| 80 \| 954788457 \| mail@mail.com shown below –
public class Student {
private int id;
private String name;
private String branch;
private int percentage;
private int phone;
private String email;
}
//Setters and getters
0 码力 |
34 页 |
301.72 KB
| 2 年前 3
-
每个人必须签署
搜索
Git Grep
Git 日志搜索
重写历史
修改最后一次提交
修改多个提交信息
重新排序提交
压缩提交
拆分提交
核武器级选项:filter-branch
重置揭密
三棵树
工作流程
重置的作用
通过路径来重置
压缩
检出
总结
高级合并
合并冲突
撤消合并
其他类型的合并
Rerere
使用 git status
git diff
git difftool
git commit
git reset
git rm
git mv
git clean
分支与合并
git branch
git checkout
git merge
git mergetool
git log
git stash
git tag
项目分享与更新
git fetch
git pull send-email
git request-pull
外部系统
git svn
git fast-import
管理
git gc
git fsck
git reflog
git filter-branch
底层命令
## 许可证
本作品在“创作共用署名-非商业性使用-相同方式共享3.0未本地化版本(CC BY-NC-SA 3.0)”许可协议下授权。要阅览该许可的副本,请访问https://creativecommons
0 码力 |
670 页 |
13.59 MB
| 2 年前 3
-
$ git config --list
user.name=John Doe
user.email=johndoe@example.com
color.status=auto
color.branch=auto
color.interactive=auto
color.diff=auto
...
你可能会看到重复的变量名,因为Git会从不同的文件中读取同一个配置(例如:/etc/gitconfig与 ## 检查当前文件状态
可以用git status命令查看哪些文件处于什么状态。如果在克隆仓库后立即使用此命令,会看到类似这样的输出:
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean status 命令,你将看到一个新的未跟踪文件:
```bash
$ echo 'My Project' > README
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add
0 码力 |
501 页 |
19.30 MB
| 2 年前 3
-
serving a specific purpose:
- master - This is the Laravel release branch. Active development does not happen on this branch. This branch is only for the most recent, stable Laravel core code. When you download master branch. Do not make pull requests to this branch.
- develop - This is the working development branch. All proposed code changes and contributions by the community are pulled into this branch. When When you make a pull request to the Laravel project, this is the branch you want to pull-request into.
Once certain milestones have been reached and/or Taylor Otwell and the Laravel team is happy with the
0 码力 |
139 页 |
1.13 MB
| 2 年前 3
-
| I | SRAI | rd,rs1,shamt | SRAIW | rd,rs1,shamt | Branch = 0 (BEQ rs,x0,imm) | J | BEQ rs,imm | | | | | Ari imm | FSW | rs2,sp,imm*8 | | | |
| Branches | Branch = | B | BEE | Float Store Double | CS | C.FSD | rs1',rs2' > | Branch # | B | BNE | Float Store Double SP | CSS | C.FSDSP | rs2,imm | FSD | rs2,sp,imm*16 | | | |
Branch << 0 码力 |
217 页 |
29.97 MB
| 2 年前 3 -
weblate-one weblate-second
# Merge QA_4_7 branch:
git checkout QA_4_7
git merge weblate-one/QA_4_7
... # Resolve conflicts
git commit
# Merge master branch:
git checkout master
git merge weblates-second/master repository).
In case the Push branch is not set, the project is forked and changes pushed through a fork. In case it is set, changes are pushed to the upstream repository and chosen branch.
For smaller deployments Weblate tries to detect Subversion repository layout automatically - it supports both direct URLs for branch or repositories with standard layout (branches/, tags/ and trunk/). More info about this is to be 0 码力 |
673 页 |
9.34 MB
| 2 年前 3
|