sourize commited on
Commit
d44e362
·
1 Parent(s): 9070ad6

Initial Commit

Browse files
Files changed (2) hide show
  1. push.ps1 +5 -2
  2. push.sh +5 -2
push.ps1 CHANGED
@@ -1,9 +1,12 @@
 
 
 
1
  # Push to Hugging Face
2
  Write-Host "Pushing to Hugging Face..." -ForegroundColor Green
3
- git push origin main
4
 
5
  # Push to GitHub
6
  Write-Host "Pushing to GitHub..." -ForegroundColor Green
7
- git push github main
8
 
9
  Write-Host "Done!" -ForegroundColor Green
 
1
+ # Get current branch name
2
+ $branch = git rev-parse --abbrev-ref HEAD
3
+
4
  # Push to Hugging Face
5
  Write-Host "Pushing to Hugging Face..." -ForegroundColor Green
6
+ git push origin $branch
7
 
8
  # Push to GitHub
9
  Write-Host "Pushing to GitHub..." -ForegroundColor Green
10
+ git push github $branch
11
 
12
  Write-Host "Done!" -ForegroundColor Green
push.sh CHANGED
@@ -1,11 +1,14 @@
1
  #!/bin/bash
2
 
 
 
 
3
  # Push to Hugging Face
4
  echo "Pushing to Hugging Face..."
5
- git push origin main
6
 
7
  # Push to GitHub
8
  echo "Pushing to GitHub..."
9
- git push github main
10
 
11
  echo "Done!"
 
1
  #!/bin/bash
2
 
3
+ # Get current branch name
4
+ git_branch=$(git rev-parse --abbrev-ref HEAD)
5
+
6
  # Push to Hugging Face
7
  echo "Pushing to Hugging Face..."
8
+ git push origin "$git_branch"
9
 
10
  # Push to GitHub
11
  echo "Pushing to GitHub..."
12
+ git push github "$git_branch"
13
 
14
  echo "Done!"