Notice
Recent Posts
Recent Comments
Link
관리 메뉴

데브마우스

[Git:명령어 정리] push 명령어 정리 본문

Git/Git: 명령어 정리

[Git:명령어 정리] push 명령어 정리

데브마우스 2024. 1. 10. 13:50

git push 명령어 정리

git push 명령어는 로컬 저장소의 파일을 원격 저장소로 업로드할 때 사용합니다.

처음 사용할 때는 git push -u origin [main | master]로 작성하며 2번째 부터는 git push로 작동합니다.

git push 명령어 형식은 아래와 같습니다.

git push [--all | --branches | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
           [--repo=<repository>] [-f | --force] [-d | --delete] [--prune] [-q | --quiet] [-v | --verbose]
           [-u | --set-upstream] [-o <string> | --push-option=<string>]
           [--[no-]signed|--signed=(true|false|if-asked)]
           [--force-with-lease[=<refname>[:<expect>]] [--force-if-includes]]
           [--no-verify] [<repository> [<refspec>…​]]