$git init
$ssh-keygen
$ssh-add ~/.ssh/id_rsa
$git remote add origin SSH_URL_FROM_GITHUB
Set a ssh config file
$cat > ~/.ssh/config
Host github.com
Hostname github.com
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
(CTRL+D)
Set a basic path
$cat >> ~/.bash_profile
alias la='ls -a'
alias ll='ls -l'
HOME=/d/webhome/
HOMEDRIVE=D:/
HOMEPATH=\webhome
cd
(CTRL+D)
Avoiding ssh passphrase prompt
$cat >> ~/.bash_profile
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
(CTRL+D)
Patterned upload
$git checkout -b BRANCH_NAME
(coding)
$git status
$git diff FILENAME
$git add FILENAME
$git commit- m "COMMIT MSG FOR THE FILE"
$git push
(testing)
$git checkout master
$git merge BRANCH_NAME
(if needed)
$git branch -d BRANCH_NAME_TO_DELETE
Check commit id
$git log
Create a temporary branch to check old code
$ git checkout -b <temp_branch_name> <commit_id>
Going back to the current/final version
$ git checkout master
Rename a branch
$ git checkout BRANCH
$ git branch -m NEW_NAME
Cancel 'add'
$ git reset FILENAME
Check difference of an added file
$ git diff --cache FILENAME
2019년 4월 22일 월요일
피드 구독하기:
글 (Atom)
Xubuntu: Installing a Printer (Canon G3060 PIXMA)
$ sudo apt install system-config-printer Download the proper driver for linux from Canon website. Turn on the printer and set up its WiFi. C...
-
Supported by Ine Hordvik In order to set the sync client language to English, t ry the following: Open your control panel Go to System ...
-
1) 공인 인증서(범용, 은행/보험용) 파일 저장 위치 - Windows XP/Vista C:\Program Files\NPKI - Windows 7(64bit) C:\Users\[사용자 아이디]\AppData\L...
-
One of the very best Windows Tip ever! Control Panel -> Region and Language -> Additional Settings button -> Date tab -> ...