Skip to content

devMacQueen/git-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

WHAT I UNDERSTAND BY VERSION CONTROL

version control is a system that tracks and manages changes tova file over time, allowing you to recall a specific versionand revert changes if needed.

THE IMPORTANCE OF VERSION CONTROL

safety Net: cover Acts li99ke an undo button for your entire project, letting you revert mistakes or recover lost work

History and clarity: ,Tracks who change what, when,band why, providing a clear audit trai Enables collaboration: Allows multiple people to work on same project simultaneously without overwritting each others work

WHAT IS GIT
Git: is a distributed version control system that's allow to track changes, create branch, and allow multiple user to work on same project simultaneously
WHAT IS GITHUB Github: is a cloud bases platform and colloration service built around Git it provides pull resquest,hosting,web interface WHAT IS THE DIFFERENCES BTW GIT & GITHUB

git is local(only on oue computers) while github is remote(global accessable anywhere)

Comprehensive git and Github setup for beginners step 2 install git on your device using the command [sudo apt-get install git] and [git --version] to check the version

step 3: I use [git config --global user.name "your_github_username"]

step 4: I use [git config --global user.email "your_github_email.com"]

step 5: I use [git config --list ] to check my user.name and user.email

step 6: ssh-keygen -t ed25519 -C "your.email"

step 7: eval "$(ssh-agent -s)"

step 8: ssh-add ~/.ssh/id_ed25519

step 9: cat ~/.ssh/id_ed25519.pub after this it will show you an ssh key, it start with ssh and end with your@email.com

step 10: copy the key and go to your github setting and you will fine shh key there paste the ssh key you copy and save it with your device name

HOW TO PUSH

step 1: git status to check th status of the files/directory

step 2: git init to initialize the file

step 3: git add to add the file or [git add .] to add all files in the directory step 4: git -m commit "what you want to write "

step 5: git log

step 6: go to your github and create a new repositorics and copy the ssh link and then go back to your terminal

step 7: git remote add origin your ssh link you copied

step 8: git push -u origin master to push your file from your local to globe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published