Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions HowToGit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
***
#### 커밋 리스트 보기
###### 명령어
```bash
git log --oneline
```
###### 결과 예시
```bash
8bd3848 (HEAD -> coLaptop) 240122 am1043 커밋 테스트! branch is coLaptop. :)
ca1d3e4 (origin/coLaptop) 240122 am1043 커밋 테스트! branch is coLaptop. :)
````
***

#### 브랜치 체크아웃 하기
###### 명령어
```bash
git checkout coLaptop
```
###### 결과
이미 해당 브랜치인 경우 아래와 같이 나타난다.
```bash
Already on 'coLaptop'
A HowToGit.md
A HowToPython.md
Your branch is up to date with 'origin/coLaptop'.
```
###### 결과
정상 변경된 경우 아래와 같이 나타난다.
```bash
Switched to branch 'coLaptop'
A HowToGit.md
A HowToPython.md
Your branch is up to date with 'origin/coLaptop'.
```
***
#### 새로운 브랜치를 만들고 체크아웃 하기
###### 명령어
```bash
git checkout -b temp
```
###### 결과
새로운 브랜치 temp 이 생성되었다.
```bash
Switched to a new branch 'temp'
Your branch is based on 'origin/temp', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
```
***
#### 브랜치 삭제하기
###### 명령어
```bash
git branch -d temp
```
###### 결과
```bash
Deleted branch temp (was e7399e0).
```
22 changes: 22 additions & 0 deletions HowToPython.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## 파이썬 환경 구축

### 1. 시스템에 원하는 파이썬 버전을 설치
(환경 변수 패스 추가 X)

### 2. 가상환경 생성 하기
###### 명령어
[파이썬exe경로] -m venv [가상환경이름]
```bash
C:\Users\KB099\AppData\Local\Programs\Python\Python310\python.exe -m venv venv310
```

### 3. 가상환경 활성화 하기
###### 명령어
```bash
venv310\Scripts\activate
```

###### 결과
```bash
(venv310) PS C:\Users\KB099\PycharmProjects\PythonAlgorithm>
```