• Home
  • Raw
  • Download

Lines Matching full:git

1 Using Gerrit without git-cl
9 This command sets up a Git commit-message hook to add a unique Change-Id to
13 curl -Lo "$(git rev-parse --git-dir)/hooks/commit-msg"
15 chmod +x "$(git rev-parse --git-dir)/hooks/commit-msg"
22 git remote set-url origin 'https://skia.googlesource.com/skia.git'
37 git checkout -b TOPIC
41 git checkout -b TOPIC -t origin/master
46 git commit --all --message 'Change Foo'
47 git log -1
49 `git log` should show that a Change-Id line has been added you your commit
59 git push origin @:refs/for/master
61 `@` is shorthand for `HEAD`, introduced in git v1.8.5.
66 git push origin @:refs/for/chrome/m57
81 git commit --all --amend
91 git push origin @:refs/for/master
95 git push origin @:refs/for/master%m=this_is_the_patch_set_comment_message
100 Using `git cl try`
105 git cl issue $(bin/gerrit-number @)
107 Now `git cl try` and `bin/try` will work correctly.
113 You may want to make git aliases for common tasks:
115 git config alias.gerrit-push 'push origin @:refs/for/master'
119 git config alias.amend-head 'commit --all --amend --reuse-message=@'
123 git config alias.setcl '!git-cl issue $(bin/gerrit-number @)'
129 local MESSAGE="$(git log --format=%B ^@{upstream} @)"
130 git reset --soft $(git merge-base @ @{upstream})
131 git commit -m "$MESSAGE" -e
140 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
143 These shell scripts can be turned into Git aliases with a little hack:
145git config alias.squash-branch '!M="$(git log --format=%B ^@{u} @)";git reset --soft $(git merge-b…
147git config alias.gerrit-push-message '!f(){ git push origin @:refs/for/master%m=$(echo $*|sed "s/[…
149 If your branch's upstream branch (set with `git branch --set-upstream-to=...`)
153 local UPSTREAM_FULL="$(git rev-parse --symbolic-full-name @{upstream})"
162 echo git push $REMOTE @:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}
163 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
166 As a Git alias:
168git config alias.gerrit-push '!f()(F="$(git rev-parse --symbolic-full-name @{u})";case "$F" in (re…