programming:git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programming:git [2019/11/07 11:52] – clemix | programming:git [2019/12/09 14:21] (current) – clemix | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| <code bash> | <code bash> | ||
| git commit -c ORIG_HEAD | git commit -c ORIG_HEAD | ||
| - | </ | + | </code> |
| + | ====== Checkout PR from github on a new branch ====== | ||
| + | < | ||
| + | #!/bin/bash +x | ||
| + | |||
| + | pr_url=" | ||
| + | target_repo_part=${pr_url%%/ | ||
| + | pr=" | ||
| + | pr_url=${target_repo_part/ | ||
| + | pr_content=$(curl " | ||
| + | label=$(echo " | ||
| + | user=$(echo " | ||
| + | repo_name=" | ||
| + | branch=" | ||
| + | repo=" | ||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | |||
| + | echo git checkout -b " | ||
| + | git checkout -b " | ||
| + | echo git pull " | ||
| + | git pull " | ||
| + | </code> | ||
programming/git.1573123958.txt.gz · Last modified: by clemix
