Skip to content

xpaulos/Preboot_Session2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

2025techpro_Session2

Git Installation

Install Git

Download and install the latest version of Git ---> https://git-scm.com/downloads

Set up Git

Setting your Git username for every repository on your computer

Open Terminal.

Set a Git username:
git config --global user.name "YOUR USERNAME"

Confirm that you have set the Git username correctly:
git config --global user.name

Setting your email address for every repository on your computer

Open Terminal.

Set an email address in Git
git config --global user.email "YOUR_EMAIL"

Confirm that you have set the email address correctly in Git:
git config --global user.email

Basic Commands

Open terminal

Check your version
git --version
List all settings
git config --list
Set Default Values
git config --global init.defaultBranch main

##Start a project
mkdir myproject
cd myproject
ls -a
git init
ls -a
vi index.html
Copy paste the code from index.html in this repository to the newly created index.html
Search the web how you can save and exit vi
ls
git status
git add index.html
git status
git commit -m "I commit, Do you Commit?"
git status

About

Git Exersises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages