Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthogan/b05623eb5876ba7bb6a7c2a963694e36 to your computer and use it in GitHub Desktop.
Save matthogan/b05623eb5876ba7bb6a7c2a963694e36 to your computer and use it in GitHub Desktop.

Revisions

  1. matthogan created this gist Dec 21, 2021.
    1 change: 1 addition & 0 deletions git push and create new project on remote repo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git push --set-upstream http://git-repo/path/project/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)