git_cheat_sheet
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git_cheat_sheet [2023/01/11 02:29] – stephen | git_cheat_sheet [2025/10/28 04:33] (current) – stephen | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| fa = fetch -a | fa = fetch -a | ||
| tf = !git reset && git checkout -- . && git clean -df | tf = !git reset && git checkout -- . && git clean -df | ||
| + | as = !git add . && git stash | ||
| + | pr = !git stash pop && git reset | ||
| brdr = push --delete origin | brdr = push --delete origin | ||
| fp = push --force | fp = push --force | ||
| Line 145: | Line 147: | ||
| | ''< | | ''< | ||
| | ''< | | ''< | ||
| + | | ''< | ||
| + | | ''< | ||
| ===== Workflows ===== | ===== Workflows ===== | ||
| Line 266: | Line 270: | ||
| < | < | ||
| git svn clone https:// | git svn clone https:// | ||
| + | </ | ||
| + | |||
| + | ===== Who needs to clean up ===== | ||
| + | |||
| + | Lists the author and date of the last commit on each remote branch. Need to run it on bash. | ||
| + | |||
| + | < | ||
| + | for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format=" | ||
| </ | </ | ||
git_cheat_sheet.1673404198.txt.gz · Last modified: 2023/01/12 03:29 (external edit)
