-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move
Additional Commands
under app-commands.md
- Loading branch information
1 parent
6860305
commit 413bb6e
Showing
2 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Commands | ||
|
||
## Push commits one by one automatically | ||
|
||
- Windows (PowerShell): | ||
|
||
```powershell | ||
foreach ($rev in $(git rev-list --reverse origin/branch-name..branch-name)) | ||
{ | ||
git push origin ($rev + ":branch-name") -f | ||
} | ||
``` | ||
|
||
- Linux (Shell): | ||
|
||
```shell | ||
for rev in $(git rev-list --reverse origin/branch-name..branch-name); do | ||
git push origin $rev:branch-name -f; | ||
done | ||
``` |