This page (revision-22) was last changed on 13-Oct-2021 18:43 by arcoleo

This page was created on 31-Mar-2020 17:25 by arcoleo

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
22 13-Oct-2021 18:43 1 KB arcoleo to previous
21 13-Jul-2021 19:34 1 KB arcoleo to previous | to last

Page References

Incoming links Outgoing links
Git Branch Usage ...nobody

Version management

Difference between version and

At line 9 changed 4 lines
| Squash against master | {{{g rbim}}}[1][2] | {{{git rebase -i HEAD~$(git rev-list --count master..);
}}}
| Squash against another branch | {{{g rbi $branch_name}}}[3] | {{{git rebase -i HEAD~$(git rev-list --count ${1}..);
}}}
| How many commits to squash | {{{git rev-list --count master..}}} | {{{git rev-list --count master..}}}
| Rebase your branch from HEAD[1] | {{{grbi HEAD~$Y}}} | {{{git rebase -i HEAD~$Y}}}
At line 17 changed one line
{{.gitconfig}} syntax:
[#1] {{$Y}} is displayed in GitLab at the top, where it says ''Overview: X, Commits: Y, Pipelines: Z, ...'' . The number you want is Y.
At line 19 removed 6 lines
[#1] {{{rbim = "!f() { git rebase -i HEAD~$(git rev-list --count master..); }; f"}}}
[#2] {{{rbin}}} if using main instead of master
[#3] {{{rbi = "!f() { git rebase -i HEAD~$(git rev-list --count ${1}..); }; f"}}}
At line 29 removed 2 lines
Assuming you are currently in {{$branch_name}},
At line 34 changed one line
| Checkout branch | {{{gco @{-1} }}}[3] | {{{git checkout @{-1} }}}
| Checkout branch | {{{gco $branch_name}}} | {{{git checkout $branch_name}}}
At line 41 removed 2 lines
[#3] references the most recent branch, {{{$branch_name}}}
At line 53 changed one line
[CategoryComputing.SCM.Git] - [CategoryFrequent]
[CategoryComputing.SCM.Git]