-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhow2github.txt
More file actions
31 lines (25 loc) · 1.07 KB
/
how2github.txt
File metadata and controls
31 lines (25 loc) · 1.07 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
#!/bin/bash
cd
git clone https://github.com/p27182/linux.git
cd linux
#get gh repo keys
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \\n&& sudo apt update
sudo apt install gh
sudo apt update
echo "get token from github webUI: AccountSettings >> DevSettings >> Personal AccessTokens (Classic)"
echo "check repo and admin:org"
echo "be ready to paste token..."
read -n 1 -r -s -p $'Press enter to continue...\n'
#gh auth login
#git add .zshrc
#git status
#git push
#git push origin main
#after repo is checked out n you workin on thangs
#git add editedfile.txt
#git commit -m 'comment n stuff'
#git push
#tooverwrite local with remote
#git fetch
#git reset --hard origin/master
#check github to see if it be there 🙏