Loading...
    • 개발자 가이드
    • API 참조
    • MCP
    • 리소스
    • 릴리스 노트
    Search...
    ⌘K
    리소스
    개요용어집시스템 프롬프트
    프롬프트 라이브러리Cosmic KeystrokesCorporate clairvoyantWebsite wizardExcel formula expertGoogle apps scripterPython bug busterTime travel consultantStorytelling sidekick출처 인용SQL sorcererDream interpreterPun-ditCulinary creatorPortmanteau poetHal the humorous helperLaTeX legendMood colorizerGit gudSimile savantEthical dilemma navigatorMeeting scribeIdiom illuminatorCode consultantFunction fabricatorNeologism creatorCSV converterEmoji encoderProse polisherPerspectives pondererTrivia generatorMindfulness mentorSecond-grade simplifierVR fitness innovatorPII purifierMemo maestroCareer coachGrading guruTongue twisterInterview question crafterGrammar genieRiddle me thisCode clarifierAlien anthropologistData organizerBrand builderEfficiency estimatorReview classifierDirection decoderMotivational museEmail extractorMaster moderatorLesson plannerSocratic sageAlliteration alchemistFuturistic fashion advisorPolyglot superpowersProduct naming proPhilosophical musingsSpreadsheet sorcererSci-fi scenario simulatorAdaptive editorBabel's broadcastsTweet tone detectorAirport code analyst
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    프롬프트 라이브러리

    Git gud

    사용자가 설명한 버전 관리 작업을 기반으로 적절한 Git 명령어를 생성합니다.
    • API 요청

    이 프롬프트를 우리의 개발자 Console에 복사하여 직접 시도해보세요!

    역할내용
    User로컬 파일에 일부 변경사항을 만들었고 이를 로컬 Git 저장소에 저장하고 싶습니다. 어떤 Git 명령어를 사용해야 하나요?

    예시 출력

    로컬 파일에 만든 변경사항을 로컬 Git 저장소에 저장하려면 다음 Git 명령어를 사용해야 합니다:

    1. git add . 또는 git add <file>

      • 이 명령어는 만든 변경사항을 스테이징하여 커밋할 준비를 합니다. .는 현재 디렉토리와 하위 디렉토리의 모든 변경사항을 추가합니다. 특정 파일만 스테이징하려면 .를 파일 이름이나 경로로 바꾸세요.
    2. git commit -m "커밋 메시지"

      • 이 명령어는 스테이징된 변경사항을 로컬 Git 저장소에 커밋합니다. -m 플래그를 사용하면 만든 변경사항을 설명하는 커밋 메시지를 제공할 수 있습니다. "커밋 메시지"를 변경사항에 대한 간단하고 설명적인 요약으로 바꾸세요.

    예를 들어, example.txt라는 파일에 변경사항을 만들었다면 다음과 같이 실행합니다:

    git add example.txt
    git commit -m "새로운 내용으로 example.txt 업데이트"
    

    이 명령어들은 로컬 Git 저장소에 변경사항을 저장하여 제공된 메시지와 함께 새로운 커밋을 생성합니다. 나중에 이러한 변경사항을 원격 저장소에 푸시하거나 로컬 브랜치에서 계속 작업할 수 있습니다.

    터미널이나 명령 프롬프트에서 Git 저장소 디렉토리 내에서 이 명령어들을 실행하는 것을 기억하세요.


    API 요청