Right-click and click on Git Bash Here.If you create a new directory or existing directory and try to run a git command “ git status” (Note – Just use this command as of now) then you will see the below error. We need to let git know where to track and what to track. Initialized empty Git repository in /private/tmp/test/.git/ Created initial commit 49c10e6: Initial import 1 files changed, 1 insertions(+), 0 deletions(-). So git automatically will not start tracking changes to any file. As of now with limited knowledge of git, we know that it is a version control system and we can keep a track of changes to a file or set of files. Why git init?īefore learning about the command “git init” let’s understand why do we need this command. Please do watch content then comment, like, share, and obviously subscribe. If git is not installed or you don’t know how to check then I recommend going through Install GIT On Windows – Step By Step.ĭid you know that I have started a YouTube channel as well and I need your support to make it successful. Please make sure you have the correct access rights and the repository exists. fatal: /opt/devops does not appear to be a git repository fatal: Could not read from remote repository. As a part of GIT Tutorials End To End, we will learn to create or initialize a GIT repo using a very first command called “ git init“.īefore you proceed please make sure that GIT is properly installed and configured. Initialized empty Git repository in /builds/project-0/.git/ Created fresh repository.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |