Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit a30a4bf

Browse files
authored
docs: tutorials: rolling alice: coach alice: our open source guide: Support earlier versions of git by getting branch name without --show-current
1 parent 5c27066 commit a30a4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/rolling_alice/0001_coach_alice/0002_our_open_source_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ cd my-new-python-project
4747
$ echo 'print("Hello World")' > test.py
4848
$ git add test.py
4949
$ git commit -sam 'Initial Commit'
50-
$ git push --set-upstream origin $(git branch --show-current)
50+
$ git push --set-upstream origin $(git branch -r | sed -e 's/.*\///')
5151
$ cd ..
5252
$ rm -rf my-new-python-project
5353
```

0 commit comments

Comments
 (0)