github <-> local
855 ワード
pwd
ls
cd ../
cd ~
mkdir dirName
vim a.txt
git init local_git
cd local_git
vim f1.txt
git add f1.xtx
git commit -m "add a"
git log
git remote add origin repo-address
git remote -v #연결확인
git push -u origin master
vim f1.txt
git commit -am "add b"
git push
git pull origin master #내려받기
---------------
깃허브에 SSH 원격접속
SSH생성
ssh-keygen
enter
enter
enter
![](https://s1.md5.ltd/image/218a1a1bab91c566293a15526efee7c3.png)
![](https://s1.md5.ltd/image/1b6b6dae430b1a3fc17f5ff634c30c72.png)
ハブに公開鍵を送信
cd ~/.ssh
cat id_rsa.pub
キーのコピー
![](https://s1.md5.ltd/image/98d548d5e43fc15508579b767ec47b07.png)
![](https://s1.md5.ltd/image/19904d0837c1e1e84a82ebe0cc9b74ff.png)
git addを参照:https://www.daleseo.com/git-add/
Reference
この問題について(github <-> local), 我々は、より多くの情報をここで見つけました https://velog.io/@he1256/github-localテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol