programming:git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| programming:git [2019/11/07 11:52] – [Exclude file from last commit] 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 | ||
| + | </ | ||
| + | ====== Checkout PR from github on a new branch ====== | ||
| + | <code bash> | ||
| + | #!/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 " | ||
| </ | </ | ||
programming/git.1573123971.txt.gz · Last modified: by clemix
