-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_commit.ps1
More file actions
39 lines (30 loc) · 1.03 KB
/
Copy pathgit_commit.ps1
File metadata and controls
39 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
git init
git remote add origin https://github.com/Aditya-linux/Blackbelt-stellar.git
git config user.name "Aditya"
git config user.email "aditya.linux@github.com"
git branch -M main
git add .gitignore
git commit -m "chore: add root .gitignore"
$files = Get-ChildItem -File -Recurse | Where-Object {
$_.FullName -notmatch "\\node_modules\\" -and
$_.FullName -notmatch "\\.git\\" -and
$_.FullName -notmatch "\\target\\" -and
$_.FullName -notmatch "\\.next\\" -and
$_.FullName -notmatch "git_commit\.ps1$"
}
$counter = 1
foreach ($file in $files) {
$relativePath = $file.FullName.Substring((Get-Location).Path.Length + 1).Replace('\', '/')
git add "`"$relativePath`""
$folder = ($relativePath -split '/')[0]
$name = $file.Name
git commit -m "feat($folder): implement $name"
$counter++
if ($counter -gt 32) {
break
}
}
git add .
git commit -m "feat: finalize remaining components and integrations"
echo "Commits generated! Pushing to repository..."
git push -u origin main