What does it mean to be a Git project?

Question

This exercise says we’re turning sorcerers-code into a Git project – what does this mean?

Answer

sorcerers-code is an existing directory with some files already in it, so it’s already a project of sorts. But! It’s not yet a Git project – better known as a Git repository, or repo.

When you use git init and initialize a repo, you’re officially making a Git project and can now make use of all the git commands in the world! If you’re not inside of a git repo, you won’t be able to use git commands and the terminal will complain to you about it.

23 Likes

Git is a version control system. It is on the command line. So when you turn it into a Git project, you are essentially making your project able to be compatible with Git by getting git commands imported to the command line.

23 Likes

I had two quick doubts. I request you to clear them out.

  1. While a project goes live after a UAT, the Clients sometimes ask for the code-base and a thorough understanding during hand-over. Is it true that Github comes handy at that time, making it easy for the Developers to share all their work which can be publicized to the Clients only be sharing their Repo Link with the Clients? As I am just starting to know about Project-Flow controls, my point of view might not be the case.
  2. When do the developers use Git and when do they use Github? As of now I have seen that Git is a CUI based application which colabs with Bash. How is Github different from Git?

Yes. GitHub allows you to share your repositories with other developers, clients, and anyone else only by sharing a certain link

Even though they share a similar name, they do have major differences. Git is a version control system, meaning it keeps track of the changes made to your project over time and allows you to do many things such as: restore a previous version of your project, create a new version, etc.

GitHub, on the other hand, allows you to host your git repos. Of course, GitHub is way more powerful than that, but that’s basically what it does (in simple terms)