aaa@DESKTOP-CK9UGU6 MINGW64 ~/SIST-Chill-Hotel (minmario) $ git init Reinitialized existing Git repository in C:/Users/aaa/SIST-Chill-Hotel/.git/
aaa@DESKTOP-CK9UGU6 MINGW64 ~/SIST-Chill-Hotel (minmario) $ git add .
aaa@DESKTOP-CK9UGU6 MINGW64 ~/SIST-Chill-Hotel (minmario)
$ git status On branch minmario Your branch and 'remotes/origin/minmario' have diverged, and have 5 and 1 different commits each, respectively. (use "git pull" if you want to integrate the remote branch with yours)
Changes to be committed: (use "git restore --staged <file>..." to unstage) modified: back-end/src/main/java/sist/backend/infrastructure/config/AwsS3Config.java deleted: front-end/app/checkout.zip modified: front-end/app/mypage/info/page.tsx modified: front-end/app/mypage/points/page.tsx modified: front-end/app/mypage/withdraw/page.tsx
aaa@DESKTOP-CK9UGU6 MINGW64 ~/SIST-Chill-Hotel (minmario)
$ git commit -m "back-up" [minmario d7a00d9] back-up modified: back-end/src/main/java/sist/backend/infrastructure/config/AwsS3Config.java deleted: front-end/app/checkout.zip modified: front-end/app/mypage/info/page.tsx modified: front-end/app/mypage/points/page.tsx modified: front-end/app/mypage/withdraw/page.tsx
aaa@DESKTOP-CK9UGU6 MINGW64 ~/SIST-Chill-Hotel (minmario) $ git push -u origin minmario To https://github.com/ted19horse/SIST-Chill-Hotel.git ! [rejected] minmario -> minmario (non-fast-forward) error: failed to push some refs to 'https://github.com/ted19horse/SIST-Chill-Hotel.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. If you want to integrate the remote changes, hint: use 'git pull' before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
오류났다면?
$ git push -u origin minmario --force-with-lease Enumerating objects: 39, done. Counting objects: 100% (39/39), done. Delta compression using up to 8 threads Compressing objects: 100% (15/15), done. Writing objects: 100% (20/20), 3.10 KiB | 794.00 KiB/s, done. Total 20 (delta 9), reused 0 (delta 0), pack-reused 0 (from 0) remote: Resolving deltas: 100% (9/9), completed with 9 local objects. To https://github.com/ted19horse/SIST-Chill-Hotel.git