Introduction to Git and Githup
MacOs - Windows - Linux are Operating Systems that allow you to interact with your hardware, Linux is an open source.
Git?
Git is a version control system, a software that allows you to track your codes and add new features..
Git Bash - Bourne Again Shell, Git Bash enables you to use Git, you cannot access Git without Git Bash and also, Git bash helps you to access windows operating system.
We have two ways to interact with computers:
GUI: Graphic User Interface
CLI: Command Line Interface
GITHUB, GITLAB and BIT BUCKET are platforms that manage the Git repository, collaborate, and share codes with other developers..
How to commit files on Git..
The terminal in Git is a command-line interface that allows you to interact with Git and manage your repositories. Here are some basic Git commands and terminal operations.
Steps in committing your file in git..
-
Open the project folder:
Open any project you want to commit in Git. -
Navigate to the command line:
You do that using "Ctrl + back thick" opens the terminal operation. -
Initialize an empty git repository: You achieve this using "git init"
-
Add files to the staging area: by typing " git add ."
-
Commit files to git: ( git commit -m " " )
CD: Change directory
IS: Listing files
( git em - - cached .) Remove file from the staging area
git status tells you if you have added a file or not
The status shows on your file's name..
'A' means Added to the staging area
'U' means uncommitted.