-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.psm1
48 lines (41 loc) · 1.04 KB
/
github.psm1
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
40
41
42
43
44
45
46
47
48
# Author: Jorge Cisneros
#
# Purpose: The "I'm lazy, so here are the github commands set up as functions"
# Open the github website
Function github {start($GITHUB)}
# Initialize git repository in current location
Function init {
param(
[string]$esto
)
git init; sleep 1;
git add -A; sleep 1;
git commit -m "first commit"; sleep 1;
git branch -M main; sleep 1;
git remote add origin https://github.com/rBigChill/$esto.git; sleep 1;
git push -u origin main; sleep 1;
}
# Git Status for current location
Function status {git status}
# Git Push work in current location
Function push {
param(
[string]$esto
)
git add -A; sleep 1;
git commit -m "$esto"; sleep 1;
git push -u origin main;
}
# Git Pull current files to current location
Function pull {git pull}
# Git Clone selected repository to current location
Function clone {
param (
[string]$esto
)
git clone https://github.com/$esto.git
}
# Logs git user out
Function gitout {
git credential-manager github logout git
}