The Beautiful Future
Install Atom editor and integration with Github 본문
### Introduction
그동안 우분투에서 메모장 같은 gedit으로 간단한 코딩만하다가
괜찬은 툴 알아봐야지 알아봐야지만 하다가 드디어 사용하기로 맘먹고 찾아보던 중 !
Atom이란 editor를 선택했다.
이유는 일단 Ubuntu에서 SouceTree라는 아주 널리 사용되고 있는 Git연동툴이 지원안되는데 지원을 어느정도 해줘서
그리고 유아이가 맘에든다.
그리고 Github에서 개발된 IDE라고해서 좀 신뢰가 가서이다.
### How to install
http://tipsonubuntu.com/2016/08/05/install-atom-text-editor-ubuntu-16-04/
## 단축키 정리
ctrl+, : settings
ctrl+shift+p: search all
ctrl+9: git 설정창
### How to use + 요령
깃허브 연결 및 다운 로드는 command로 만들고
유지보수를 atom에 있는 디폴트 깃으로 하는 방법을 선택하였다.
여기 저기 찾아보니 git-clone이라는 패키지를 설치해서 다운 받고
git-plus라는 패키지로 명령어치면서 하는거 같은데... 좀 예전블로그인가 생각이든다
왜냐하면 atom에 디폴트로 들어가있는게 UI도 괜춘하고 쓸만한거 같다.(단축키: ctrl+9 )
그리고 개 삽질했던게 git-control이라는 패키지 써볼려다가 실패한거다ㅜㅜ 아우...
Atom이랑 버전이 안맞아서 그런지 Erro가 많이 나온다. 개고생해서 몇개 버그 잡았는데
다른데서 계속남.... 쓰지말자!!
### 깃허브 연결 및 다운 로드는 command로
참고 싸이트: https://nolboo.kim/blog/2013/10/06/github-for-beginner/
$mkdir new_folder
$cd new_folder
$git config --global --list
$git config --global user.name "id"
$git config --global user.email "e-mail"
$git config --global --list
$git int
$git remote -v
$git remote add origin https://github.com/id/repo
$git pull origin master
$git status
$git add -f file_name
$git commit -m "comment"
$git push origin master
### 유지보수를 atom의 깃으로 하는 방법을 선택하였다.
여러 곳에서 커밋 및 푸시를 했을때 코드가 다른부분을 보여주고
선택하는 기능이 제일 중요하다고 생각했었는데 된다.
깃에서 내가 수정 미리 해놓구 로컬에서 atom으로 수정해서 push하면 conflict
뜨면서 보여준다. 굳굳!!!
아래 그림이 ctrl+9 누르면 나오는 깃 설정창인데 빨간상자로 해놓은거 첨에 못 찾아가지고 엄청 헤멤 ㅜㅜㅜ
### 삽질 (읽을 필요 없음)
1. Git link
git-plus package 설치
2. git control package error(git control error 너무 많고 두세개 해결했지만 또 계혹 나오온다, git-plus와 git-clone사용하기로함.)
Uncaught TypeError: Cannot read property 'split' of undefined
https://github.com/jacogr/atom-git-control/pull/247
.atom\packages\git-control\lib\git-control-view.coffee
and change line 76 :
from
@setWorkspaceTitle(git.getRepository().path.split('/').reverse()[1])
to@setWorkspaceTitle(git.getRepository().repo.workingDirectory.split('/').reverse()[1])
lib/dialogs/project-dialog.coffee
from
option.text = path.basename(path.resolve(repo.path, '..'))
to
option.text = path.basename(path.resolve(repo.repo.workingDirectory))
from
repo = git.getRepository()
@parentView.setWorkspaceTitle(repo.path.split('/').reverse()[1])
to
repo = git.getRepository().repo
@parentView.setWorkspaceTitle(repo.workingDirectory.split('/').reverse()[0])
3. git-clone
'스킬' 카테고리의 다른 글
ubuntu remote connection (0) | 2018.01.23 |
---|---|
git command (0) | 2017.11.10 |
우분투 명령어 (0) | 2017.08.09 |
caffe locally connected layer (0) | 2016.09.17 |
sse add mul (0) | 2016.09.04 |