일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 프로그래머스
- react-query
- 프론트엔드
- error
- 코드트리
- Apple Developer Academy
- swiftUI
- NextJs
- SWIFT
- iOSDeveloper
- 알고리즘
- 코딩테스트실력진단
- velog
- tshaped
- TypeScript
- JavaScript
- react
- ios
- UIKit
- globalcommunity
- git
- Xcode
- Front-end
- AppleDeveloperAcademy
- 코딩테스트
- 회고
- 자바스크립트
- 코드트리챌린지
- 프로젝트
- frontend
- Today
- Total
목록git (3)
Moon Work

.gitignoreapi를 사용하는 간단한 앱을 만드려는데 api key를 github에 올리지 않기 위해 .gitignore 파일을 만들어야 했다. Xcode는 VSCode와 달리 터미널에서 .gitignore 파일을 추가할 수 있었다. git 시작하기아래와 같이 git을 시작해서 .gitignore파일을 생성한다. // git 시작하기git init// .gitignore 파일 생성touch .gitignore// .gitignore 파일 열기vim .gitignore gitignore 파일 작성하기1. 아래의 사이트에서 Swift, Xcode 등을 입력해서 기본적으로 필요한 gitignore 파일을 얻을 수 있다.2. 아래와 같이 내용을 전달 받은 뒤 복사를 한 뒤 앞서 열어둔 .gitignore ..

Merge branch 'cssStyle' # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. Git merge git에서 작업을 하던 브랜치에서 main 브랜치에 병합하게 될 경우 fast-forward 방식과 non-fast-forward 방식이 있다. 위 에러는 non-fast-forward 방식으로 병합을 하는데 사용하는 VSCode에서 나타난 에러이..

Git 시작하기 git init Staging area에 파일 추가하기 git add [파일 또는 폴더] // 현재 디렉토리의 모든 내용을 staging area에 추가할 때 git add . // 작업 디렉토리 내의 모든 변경 내용을 staging area에 추가할 때 git add -a Commit하기 //staging area에 있는 모든 내용을 묶어서 하나의 commit을 생성한다. git commit -m "message" git 상태 확인하기 git status branch 만들기 //branch 만들기 git branch [branchName] //branch 만들고 branch로 이동하기 git checkout -b [branchName] branch로 이동하기 git checkout [b..