์ค๋ ๋ฐฐ์ด, ์๊ฒ ๋, ํ์ตํ ๋ด์ฉ ์ ๋ฆฌํ๊ฑฐ๋
์์ ๋กญ๊ฒ ๋๋ ์ ์ ์ ์ด๋๋ ์ ์ฅ์ ์ ๋๋ค. โ๏ธโบ๏ธ
jiinheo / til Goto Github PK
View Code? Open in Web Editor NEW:octocat: Today I Learned. ๐ฅ
:octocat: Today I Learned. ๐ฅ
์ค๋ ๋ฐฐ์ด, ์๊ฒ ๋, ํ์ตํ ๋ด์ฉ ์ ๋ฆฌํ๊ฑฐ๋
์์ ๋กญ๊ฒ ๋๋ ์ ์ ์ ์ด๋๋ ์ ์ฅ์ ์ ๋๋ค. โ๏ธโบ๏ธ
feature ๋ธ๋์น์์ main ๋ธ๋์น๋ก ๋ณ๊ฒฝ์ ์๋ฌ๋ฐ์
git checkout main
*์ฐธ๊ณ
checkout์ ๋ธ๋์น ๋ณ๊ฒฝ, ๋ณต๊ตฌ ๋๊ฐ์ง ์ํฉ์์ ๋ชจ๋ ์ฌ์ฉ๋์ด switch๋ก ๋ณ๊ฒฝ๋จ
git switch main
git switch -c main : ๋ธ๋์น๋ฅผ ์๋ก ์์ฑํ๊ณ ์ ํ ๋๋ ๊ธฐ์กด์ ์ฌ์ฉํ๋ -b์ต์
์ -c๋ก ๋ณ๊ฒฝ
error: Your local changes to the following files would be overwritten by checkout:
ios-timer-app.xcodeproj/project.xcworkspace/xcuserdata/heojiin.xcuserdatad/UserInterfaceState.xcuserstate
ios-timer-app/ViewController.swift
Please commit your changes or stash them before you switch branches.
commit ์ ํ๊ณ ๋ณ๊ฒฝํ ๋ถ๋ถ์ด ์์ด์ ์์ ์๋ฌ๊ฐ ๋ฐ์ํจ
git status
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: ios-timer-app.xcodeproj/project.xcworkspace/xcuserdata/heojiin.xcuserdatad/UserInterfaceState.xcuserstate
(use "git restore ..." to discard changes in working directory)
git restore๋ก ์์ ํ ํ์ผ์ ๊ธฐ์กด ์ํ๋ก ๋๋๋ ค์ ํด๊ฒฐ
git restore ํ์ผ๋ช
: ์์ ํ ๋ด์ฉ์ ์ญ์ ํ๊ณ ๊ธฐ์กด ์ํ๋ก ๋๋๋ฆผ (git checkout๊ณผ ๋์ผ)
git restore --staged ํ์ผ๋ช
: stage๋ ํ์ผ์ ๋๋๋ฆผ
๋ฌธ์ ๋ ๋ธ๋์น๋ฅผ ๋ณ๊ฒฝํ ๋๋ง๋ค ๊ณ์ ์์ ์๋ฌ๊ฐ ๋ฐ์
์ด์ ์ pod ํ์ผ์ Firebase/Database ๋ฅผ ์ค์นํ๊ณ ,
์ดํ์ Firestore๋ฅผ ์ค์นํ๋ ค๊ณ ํ๋๋ฐ ์ค๋ฅ ๋ฐ์
<pod ํ์ผ ์ถ๊ฐ>
pod 'Firebase/Firestore'
pod 'Firebase/FireStoreSwift'
$ pod install
could not find compatible versions for pod "FirebaseCore"
ํธํ๋๋ ๋ฒ์ ์ ์ฐพ์ ์ ์๋ค๋ ์ค๋ฅ
pod.lock ํ์ผ ์ญ์ ํ
$pod install
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.