Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:38:27+00:00 2026-06-17T10:38:27+00:00

I am just a git starter , basically I clone a git repository and

  • 0

I am just a git starter, basically I clone a git repository and now I wanted to commit the changes that I made in a file. when I run the command git commit it says not a git repository,

So being a starter in git i just wanted to ask that do i need to run this command first – git init and then git commit? Or in between these some more steps to follow to commit the file?

I need to commit files on Bitbucket.

Screenshot-

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:38:29+00:00Added an answer on June 17, 2026 at 10:38 am

    As jeremyharris said, the git documentation site and especially the online book there will get you up to speed on the basics.

    A few quick notes that might get you past your initial issue.

    git clone command is used to pull a copy (a clone) from an existing git repository. By default it creates a folder in the folder you execute it from that has a .git folder in it. The folder the cloning creates is your working copy and the .git folder is your local copy of the repository.

    git clone is different than most other git commands. All (or most?) other git commands require the command to be executed within the working copy folder created by the clone. (Bare repositories are a bit different since they don’t have working copies, but that shouldn’t apply here.) So, after doing:

    $ git clone <remote repo> <repo name> 
    

    do:

    $ cd <repo name>
    

    to get into the working copy before executing any other commands. Executing commands outside of the working folder will get you the not a git repository message.

    After making a change to a file, git add <filename> adds it to the index (marked to indicate ready to commit) and git commit -m '<commit message>' will then commit the changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just download Git bash and now I want to download a repository from
I just started working on a project that uses git as a repository. I've
I just cloned the git repository for the SBJson framework and imported the source
I have just started a new git repository. I followed the directions on github,
I started a local git repository. Now, at this point, I want to publish
I've just started using git in Vista, with my repository under /path/to/project/git repo .
I've just started learning Git, and the tutorial I'm using says that when cloning
I've just started using Git and find that whilst I am implementing a feature
I'm just getting started with Git. I've got: a repository on my local machine
I just started using Git VCS and I created repository on BitBucket when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.