forked from tranduyanh2001/TBot_and_Hector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
git.sh
21 lines (18 loc) · 827 Bytes
/
git.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#### CLONE ####
# git clone https://[email protected]/LaiYanKai/EE4308.git
#### PULL ####
# git pull origin main # git pull https://[email protected]/LaiYanKai/EE4308.git #if git remote add or git clone was used with the PAT
#### New Blank Repo created in Github, first steps ####
# git init
# git add *
# git add .gitignore
# git commit -m "First Branch"
# git branch -M main
# git remote add origin https://<PAT>@github.com/<USERNAME>/<REPONAME>.git
# git push origin main
#### Subsequent pushes ####
git add *
git add .gitignore
git commit -m "$1" # run ./git.sh "<Whatever message for commit>"
git branch -M main
git push origin main #git push https://<PAT>@github.com/<USERNAME>/<REPONAME>.git main #if git remote add or git clone not done with <PAT>