Lines Matching refs:git
1 Using Gerrit without git-cl
20 git remote set-url origin 'https://skia.googlesource.com/skia.git'
35 git checkout -b TOPIC
39 git checkout -b TOPIC -t origin/main
44 git commit --all --message 'Change Foo'
45 git log -1
47 `git log` should show that a Change-Id line has been added you your commit
57 git push origin @:refs/for/main
59 `@` is shorthand for `HEAD`, introduced in git v1.8.5.
64 git push origin @:refs/for/chrome/m57
79 git commit --all --amend
89 git push origin @:refs/for/main
94 git push origin @:refs/for/main%m=$M
103 git push origin @:refs/for/main%l=Commit-Queue+1,m=$M
106 Using `git cl try`
111 git cl issue $(bin/gerrit-number @)
113 Now `git cl try` and `bin/try` will work correctly.
119 You may want to make git aliases for common tasks:
121 git config alias.gerrit-push 'push origin @:refs/for/main'
125 git config alias.amend-head 'commit --all --amend --reuse-message=@'
129 git config alias.setcl '!git-cl issue $(bin/gerrit-number @)'
135 local MESSAGE="$(git log --format=%B ^@{upstream} @)"
136 git reset --soft $(git merge-base @ @{upstream})
137 git commit -m "$MESSAGE" -e
146 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
151 …git config alias.squash-branch '!M="$(git log --format=%B ^@{u} @)";git reset --soft $(git merge-b…
153 …git config alias.gerrit-push-message '!f(){ git push origin @:refs/for/main%m=$(echo $*|sed "s/[^A…
155 If your branch's upstream branch (set with `git branch --set-upstream-to=...`)
159 local UPSTREAM_FULL="$(git rev-parse --symbolic-full-name @{upstream})"
168 echo git push $REMOTE @:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}
169 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
174 …git config alias.gerrit-push '!f()(F="$(git rev-parse --symbolic-full-name @{u})";case "$F" in (re…