#install github
sudo apt-get install git
# Config # one time setting
sudo git config --global user.email "you@example.com"
sudo git config --global user.name "Your Name"
# program download
sudo git clone GithubWebAddress
# show status
git status
# remove file or folder
git rm filename
# 1 add changes
sudo git add *
or
sudo git add filename
# 2 commit, decribe changes
sudo git commit -m "Updates"
# 3 upload new updates from "git add command" to github
sudo git push
# in case of error
sudo git push -f origin master
# download new updates from github
sudo git pull
# remove folder
git rm -r folder-name
repeat 1~3
# issuing token from Github.
# PASSWORD = Token
Settings > Developers settings > Personal access tokens >
---------------
#remove cashed files when upload is not available caused by exceeded size +100 MB
git reset --soft HEAD~1
-----------------------------------------------------------------
# auth by email address and password has been blocked since August 13,2021.
# should access via SSH key or HTTPs
https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
#the way how to create SSH key
#install gh in LINUX
https://github.com/cli/cli/blob/trunk/docs/install_linux.md
#references
https://nolboo.kim/blog/2013/10/06/github-for-beginner/
https://rogerdudler.github.io/git-guide/index.ko.html
'Computer > Linux' 카테고리의 다른 글
Oracle server installation [Free] (0) | 2022.04.18 |
---|---|
SSL 무료로 설치 렛츠인크립트 Let's Encrypt (0) | 2021.09.22 |
rclone (0) | 2020.05.13 |
Diable sleep/hibernation mode in Ubuntu (0) | 2020.03.31 |
fdisk (0) | 2019.05.19 |
AUTOFS (0) | 2019.05.19 |
User account control (0) | 2019.05.15 |
Samba (0) | 2019.05.12 |