Hi everyone - We'll mentor you to get your black belt doing Linux freelancing earning🐧
We're interested for level up your current skills to become a giant Linux freelancer from home 🏠
We're on a mission to empower Linux freelancing training around the globe.
Q: What is Git?
A: Git is a version control system.
Q: Example of Git use
A: See atatched images. We use Git to manage our training version control release which can be see here: https://github.com/SchoolOfFreelancin...
Q: How to install latest Git and how I can check which version installed into Ubuntu?
A: To install Latest Git Run:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
Q: How to check git version?
A: To check git version run:
git --version
Q: How to configure latest Git and how I can check git configuration?
A: To configure Git run:
sudo git config --global user.name "masum"
sudo git config --global user.email [email protected]
sudo apt update
Q: How to check git configuration?
A: To check git configuration run:
sudo git config --list
Q: How to generating a new SSH key and Add SSH Key into GitHub?
A: For generating a new SSH key run:
sudo -i
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
Add SSH Key the GitHub
cat /root/.ssh/id_rsa.pub
then copy the key and paste ssh key at: https://github.com/settings/keys
Q: How to understand your SSH Key is working with GitHub?
A: To understand your SSH Key is working with GitHub run:
ssh -T [email protected]
When you will see "You've successfully authenticated, but GitHub does not provide shell access" then understand your SSH Key is working with GitHub (see video)
Q: How to see my SSH Key add add SSH Key into GitLab?
A: To see your SSH key run below command and copy and paste the key at GItLab https://gitlab.com/-/profile/keys
cat /root/.ssh/id_rsa.pub
Q: How to understand my SSH Key is working with GitLab?
A: To understand your SSH Key is working with GitLab run:
ssh -T [email protected]
When you will see "Welcome to GitLab" then understand your SSH key is working with GitLab (see video)
Q: How I can clone Ruby on Rails source code repository from GItHub? Ex: https://github.com/rails/rails
A: To clone ruby on rails source code repository into your PC use $ git clone command (see ss). Example:
git clone https://github.com/rails/rails.git
cd rails
ls
#Git #GitHub #GitLab